FAQ
hi, i am trying out the latest catalyst (installed runtime,and devel) , i am
working through the tutorial , but example at the beginning to add the hello
to root.pm, the catalyst page is fine on and http://localhost:3000/ works,
but when i tried making the edit to root.pm file as shown in tutorial to do
a simple url dispatch http://localhost:3000/ hello .... page not found
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/159af1f1/attachment.htm

Search Discussions

  • Sreekanth K at May 12, 2011 at 7:51 am
    Can you point the link to the tutorial that are looking into ?

    -Sreekanth
    On Thu, May 12, 2011 at 12:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) , i
    am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and http://localhost:3000/
    works, but when i tried making the edit to root.pm file as shown in
    tutorial to do a simple url dispatch http://localhost:3000/ hello
    .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/

    --
    Thanks and Regards,
    Sreekanth Kocharlakota
    *M: 224.433.3277*
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/ed5e955d/attachment.htm
  • Brian Wolf at May 12, 2011 at 8:04 am
    http://search.cpan.org/~bobtfish/Catalyst-Manual-5.8007/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod

    <http://search.cpan.org/~bobtfish/Catalyst-Manual-5.8007/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.pod>and
    specifically it says to add " sub hello :Global {

    my ( $self, $c ) = @_;

    $c->response->body("Hello, World!");
    }


    to root.pm file. I added it, as my root.pm file is seen at :
    https://gist.github.com/967962

    thanks

    On Thu, May 12, 2011 at 12:51 AM, Sreekanth K wrote:

    Can you point the link to the tutorial that are looking into ?

    -Sreekanth
    On Thu, May 12, 2011 at 12:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) , i
    am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and
    http://localhost:3000/ works, but when i tried making the edit to
    root.pm file as shown in tutorial to do a simple url dispatch
    http://localhost:3000/ hello .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/

    --
    Thanks and Regards,
    Sreekanth Kocharlakota
    *M: 224.433.3277*


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/659f190e/attachment.htm
  • Shawn wilson at May 12, 2011 at 8:09 am

    On May 12, 2011 3:56 AM, "Sreekanth K" wrote:
    Can you point the link to the tutorial that are looking into ?

    -Sreekanth
    On Thu, May 12, 2011 at 12:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) , i
    am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and
    http://localhost:3000/ works,
    but when i tried making the edit to root.pm file as shown in tutorial to do
    a simple url dispatch http://localhost:3000/ hello .... page not found
    IIRC, he's on chapter 1 and further in that chapter on in the next, it walks
    you through (one way of) resolving this.
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/6ad6612c/attachment.htm
  • David Schmidt at May 12, 2011 at 8:06 am

    On Thu, May 12, 2011 at 9:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) , i
    am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and http://localhost:3000/
    works, but when i tried making the edit to root.pm file as shown in
    tutorial to do a simple url dispatch http://localhost:3000/ hello
    .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    Can you send us the output of the development server. Should look something
    like this ...

    david@foo:~/myapp/MyApp$ ./script/myapp_server.pl -d
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:
    .----------------------------------------------------------------------------.
    Catalyst::Plugin::ConfigLoader 0.30
    '----------------------------------------------------------------------------'

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "/home/david/myapp/MyApp"
    [debug] Loaded Config "/home/david/myapp/MyApp/myapp.conf"
    [debug] Loaded components:
    .-----------------------------------------------------------------+----------.
    Class | Type
    +-----------------------------------------------------------------+----------+
    MyApp::Controller::Root |
    instance |
    '-----------------------------------------------------------------+----------'

    [debug] Loaded Private actions:
    .----------------------+--------------------------------------+--------------.
    Private | Class | Method
    +----------------------+--------------------------------------+--------------+
    /default | MyApp::Controller::Root |
    default |
    /end | MyApp::Controller::Root |
    end |
    /index | MyApp::Controller::Root |
    index |
    '----------------------+--------------------------------------+--------------'

    [debug] Loaded Path actions:
    .-------------------------------------+--------------------------------------.
    Path | Private
    +-------------------------------------+--------------------------------------+
    / | /index

    / | /default
    '-------------------------------------+--------------------------------------'

    [info] MyApp powered by Catalyst 5.80032
    You can connect to your server at http://foo:3000
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/a1697c0a/attachment.htm
  • Brian Wolf at May 12, 2011 at 8:12 am
    C:\Users\ryan\Documents\Hello>script\hello_server.pl
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:
    .-------------------------------------------------------------------------
    Catalyst::Plugin::ConfigLoader 0.30
    '-------------------------------------------------------------------------

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "C:\Users\ryan\Documents\Hello"
    [debug] Loaded Config "C:\Users\ryan\Documents\Hello\hello.conf"
    [debug] Loaded components:
    .-----------------------------------------------------------------+-------
    Class | Type
    +-----------------------------------------------------------------+-------
    Hello::Controller::Root | instan
    '-----------------------------------------------------------------+-------

    [debug] Loaded Private actions:
    .----------------------+--------------------------------------+-----------
    Private | Class | Method
    +----------------------+--------------------------------------+-----------
    /default | Hello::Controller::Root | default
    /end | Hello::Controller::Root | end
    /index | Hello::Controller::Root | index
    '----------------------+--------------------------------------+-----------

    [debug] Loaded Path actions:
    .-------------------------------------+-----------------------------------
    Path | Private
    +-------------------------------------+-----------------------------------
    / | /index
    / | /default
    '-------------------------------------+-----------------------------------

    [info] Hello powered by Catalyst 5.80032
    You can connect to your server at http://ryan-pc:3000
    [info] *** Request 1 (0.011/s) [4444] [Wed May 11 20:33:55 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.009114s (109.721/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000658s |
    /end | 0.000810s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 4 (0.001/s) [4444] [Wed May 11 21:33:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.005386s (185.667/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000340s |
    /end | 0.000402s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 5 (0.001/s) [4444] [Wed May 11 21:35:05 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006428s (155.569/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000273s |
    /end | 0.000437s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 6 (0.002/s) [4444] [Wed May 11 21:35:22 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.004764s (209.908/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000508s |
    /end | 0.000276s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 8 (0.002/s) [4444] [Wed May 11 21:42:35 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006503s (153.775/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000347s |
    /end | 0.000414s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 9 (0.002/s) [4444] [Wed May 11 21:42:43 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.004757s (210.217/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000305s |
    /end | 0.000272s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 10 (0.002/s) [4444] [Wed May 11 21:44:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006463s (154.727/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000262s |
    /end | 0.000433s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 11 (0.001/s) [4444] [Wed May 11 22:58:39 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.005962s (167.729/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000561s |
    /end | 0.000435s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 13 (0.001/s) [4444] [Wed May 11 22:58:54 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.005385s (185.701/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000275s |
    /end | 0.000350s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 14 (0.002/s) [4444] [Wed May 11 22:59:11 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.005551s (180.148/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000433s |
    /end | 0.000502s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 15 (0.002/s) [4444] [Wed May 11 23:04:22 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006333s (157.903/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000263s |
    /end | 0.000402s |
    '------------------------------------------------------------+-----------'
    On Thu, May 12, 2011 at 1:06 AM, David Schmidt wrote:


    On Thu, May 12, 2011 at 9:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) , i
    am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and
    http://localhost:3000/ works, but when i tried making the edit to
    root.pm file as shown in tutorial to do a simple url dispatch
    http://localhost:3000/ hello .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    Can you send us the output of the development server. Should look something
    like this ...

    david@foo:~/myapp/MyApp$ ./script/myapp_server.pl -d
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:

    .----------------------------------------------------------------------------.
    Catalyst::Plugin::ConfigLoader
    0.30 |

    '----------------------------------------------------------------------------'

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "/home/david/myapp/MyApp"
    [debug] Loaded Config "/home/david/myapp/MyApp/myapp.conf"
    [debug] Loaded components:

    .-----------------------------------------------------------------+----------.
    Class |
    Type |

    +-----------------------------------------------------------------+----------+
    MyApp::Controller::Root |
    instance |

    '-----------------------------------------------------------------+----------'

    [debug] Loaded Private actions:

    .----------------------+--------------------------------------+--------------.
    Private | Class |
    Method |

    +----------------------+--------------------------------------+--------------+
    /default | MyApp::Controller::Root |
    default |
    /end | MyApp::Controller::Root |
    end |
    /index | MyApp::Controller::Root |
    index |

    '----------------------+--------------------------------------+--------------'

    [debug] Loaded Path actions:

    .-------------------------------------+--------------------------------------.
    Path |
    Private |

    +-------------------------------------+--------------------------------------+
    / |
    /index |
    / |
    /default |

    '-------------------------------------+--------------------------------------'

    [info] MyApp powered by Catalyst 5.80032
    You can connect to your server at http://foo:3000


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/e90db414/attachment.htm
  • Brian Wolf at May 12, 2011 at 8:24 am
    are you refering to
    "cut and paste POD doc's" ? I cut from the web page and paste into MS
    notepad, thats not enough? (my experience is that notepad removes all
    formatting)


    On Thu, May 12, 2011 at 1:12 AM, Brian Wolf wrote:

    C:\Users\ryan\Documents\Hello>script\hello_server.pl
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:
    .-------------------------------------------------------------------------
    Catalyst::Plugin::ConfigLoader 0.30
    '-------------------------------------------------------------------------

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "C:\Users\ryan\Documents\Hello"
    [debug] Loaded Config "C:\Users\ryan\Documents\Hello\hello.conf"
    [debug] Loaded components:
    .-----------------------------------------------------------------+-------
    Class | Type
    +-----------------------------------------------------------------+-------
    Hello::Controller::Root | instan
    '-----------------------------------------------------------------+-------

    [debug] Loaded Private actions:
    .----------------------+--------------------------------------+-----------
    Private | Class | Method
    +----------------------+--------------------------------------+-----------
    /default | Hello::Controller::Root | default
    /end | Hello::Controller::Root | end
    /index | Hello::Controller::Root | index
    '----------------------+--------------------------------------+-----------

    [debug] Loaded Path actions:
    .-------------------------------------+-----------------------------------
    Path | Private
    +-------------------------------------+-----------------------------------
    / | /index
    / | /default
    '-------------------------------------+-----------------------------------

    [info] Hello powered by Catalyst 5.80032
    You can connect to your server at http://ryan-pc:3000
    [info] *** Request 1 (0.011/s) [4444] [Wed May 11 20:33:55 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.009114s (109.721/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000658s |
    /end | 0.000810s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 4 (0.001/s) [4444] [Wed May 11 21:33:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.005386s (185.667/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000340s |
    /end | 0.000402s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 5 (0.001/s) [4444] [Wed May 11 21:35:05 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006428s (155.569/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000273s |
    /end | 0.000437s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 6 (0.002/s) [4444] [Wed May 11 21:35:22 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.004764s (209.908/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000508s |
    /end | 0.000276s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 8 (0.002/s) [4444] [Wed May 11 21:42:35 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006503s (153.775/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000347s |
    /end | 0.000414s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 9 (0.002/s) [4444] [Wed May 11 21:42:43 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.004757s (210.217/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000305s |
    /end | 0.000272s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 10 (0.002/s) [4444] [Wed May 11 21:44:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006463s (154.727/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000262s |
    /end | 0.000433s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 11 (0.001/s) [4444] [Wed May 11 22:58:39 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.005962s (167.729/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000561s |
    /end | 0.000435s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 13 (0.001/s) [4444] [Wed May 11 22:58:54 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.005385s (185.701/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000275s |
    /end | 0.000350s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 14 (0.002/s) [4444] [Wed May 11 22:59:11 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.005551s (180.148/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000433s |
    /end | 0.000502s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 15 (0.002/s) [4444] [Wed May 11 23:04:22 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006333s (157.903/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000263s |
    /end | 0.000402s |
    '------------------------------------------------------------+-----------'
    On Thu, May 12, 2011 at 1:06 AM, David Schmidt wrote:


    On Thu, May 12, 2011 at 9:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) , i
    am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and
    http://localhost:3000/ works, but when i tried making the edit to
    root.pm file as shown in tutorial to do a simple url dispatch
    http://localhost:3000/ hello .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    Can you send us the output of the development server. Should look
    something like this ...

    david@foo:~/myapp/MyApp$ ./script/myapp_server.pl -d
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:

    .----------------------------------------------------------------------------.
    Catalyst::Plugin::ConfigLoader
    0.30 |

    '----------------------------------------------------------------------------'

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "/home/david/myapp/MyApp"
    [debug] Loaded Config "/home/david/myapp/MyApp/myapp.conf"
    [debug] Loaded components:

    .-----------------------------------------------------------------+----------.
    Class |
    Type |

    +-----------------------------------------------------------------+----------+
    MyApp::Controller::Root |
    instance |

    '-----------------------------------------------------------------+----------'

    [debug] Loaded Private actions:

    .----------------------+--------------------------------------+--------------.
    Private | Class |
    Method |

    +----------------------+--------------------------------------+--------------+
    /default | MyApp::Controller::Root |
    default |
    /end | MyApp::Controller::Root |
    end |
    /index | MyApp::Controller::Root |
    index |

    '----------------------+--------------------------------------+--------------'

    [debug] Loaded Path actions:

    .-------------------------------------+--------------------------------------.
    Path |
    Private |

    +-------------------------------------+--------------------------------------+
    / |
    /index |
    / |
    /default |

    '-------------------------------------+--------------------------------------'

    [info] MyApp powered by Catalyst 5.80032
    You can connect to your server at http://foo:3000


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/581d0d2b/attachment.htm
  • David Schmidt at May 12, 2011 at 9:07 am

    On Thu, May 12, 2011 at 10:24 AM, Brian Wolf wrote:

    are you refering to
    "cut and paste POD doc's" ? I cut from the web page and paste into MS
    notepad, thats not enough? (my experience is that notepad removes all
    formatting)


    On Thu, May 12, 2011 at 1:12 AM, Brian Wolf wrote:

    C:\Users\ryan\Documents\Hello>script\hello_server.pl
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:
    .-------------------------------------------------------------------------
    Catalyst::Plugin::ConfigLoader 0.30
    '-------------------------------------------------------------------------

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "C:\Users\ryan\Documents\Hello"
    [debug] Loaded Config "C:\Users\ryan\Documents\Hello\hello.conf"
    [debug] Loaded components:
    .-----------------------------------------------------------------+-------
    Class | Type
    +-----------------------------------------------------------------+-------
    Hello::Controller::Root | instan
    '-----------------------------------------------------------------+-------

    [debug] Loaded Private actions:
    .----------------------+--------------------------------------+-----------
    Private | Class | Method
    +----------------------+--------------------------------------+-----------
    /default | Hello::Controller::Root | default
    /end | Hello::Controller::Root | end
    /index | Hello::Controller::Root | index
    '----------------------+--------------------------------------+-----------

    [debug] Loaded Path actions:
    .-------------------------------------+-----------------------------------
    Path | Private
    +-------------------------------------+-----------------------------------
    / | /index
    / | /default
    '-------------------------------------+-----------------------------------

    [info] Hello powered by Catalyst 5.80032
    You can connect to your server at http://ryan-pc:3000
    [info] *** Request 1 (0.011/s) [4444] [Wed May 11 20:33:55 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.009114s (109.721/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000658s |
    /end | 0.000810s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 4 (0.001/s) [4444] [Wed May 11 21:33:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.005386s (185.667/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000340s |
    /end | 0.000402s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 5 (0.001/s) [4444] [Wed May 11 21:35:05 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006428s (155.569/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000273s |
    /end | 0.000437s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 6 (0.002/s) [4444] [Wed May 11 21:35:22 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.004764s (209.908/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000508s |
    /end | 0.000276s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 8 (0.002/s) [4444] [Wed May 11 21:42:35 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006503s (153.775/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000347s |
    /end | 0.000414s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 9 (0.002/s) [4444] [Wed May 11 21:42:43 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.004757s (210.217/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000305s |
    /end | 0.000272s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 10 (0.002/s) [4444] [Wed May 11 21:44:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006463s (154.727/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000262s |
    /end | 0.000433s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 11 (0.001/s) [4444] [Wed May 11 22:58:39 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.005962s (167.729/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000561s |
    /end | 0.000435s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 13 (0.001/s) [4444] [Wed May 11 22:58:54 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.005385s (185.701/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000275s |
    /end | 0.000350s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 14 (0.002/s) [4444] [Wed May 11 22:59:11 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten
    th: 5613
    [info] Request took 0.005551s (180.148/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /index | 0.000433s |
    /end | 0.000502s |
    '------------------------------------------------------------+-----------'

    [info] *** Request 15 (0.002/s) [4444] [Wed May 11 23:04:22 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten
    th: 14
    [info] Request took 0.006333s (157.903/s)
    .------------------------------------------------------------+-----------.
    Action | Time |
    +------------------------------------------------------------+-----------+
    /default | 0.000263s |
    /end | 0.000402s |
    '------------------------------------------------------------+-----------'
    On Thu, May 12, 2011 at 1:06 AM, David Schmidt wrote:


    On Thu, May 12, 2011 at 9:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) ,
    i am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and
    http://localhost:3000/ works, but when i tried making the edit to
    root.pm file as shown in tutorial to do a simple url dispatch
    http://localhost:3000/ hello .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    Can you send us the output of the development server. Should look
    something like this ...

    david@foo:~/myapp/MyApp$ ./script/myapp_server.pl -d
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:

    .----------------------------------------------------------------------------.
    Catalyst::Plugin::ConfigLoader
    0.30 |

    '----------------------------------------------------------------------------'

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "/home/david/myapp/MyApp"
    [debug] Loaded Config "/home/david/myapp/MyApp/myapp.conf"
    [debug] Loaded components:

    .-----------------------------------------------------------------+----------.
    Class |
    Type |

    +-----------------------------------------------------------------+----------+
    MyApp::Controller::Root |
    instance |

    '-----------------------------------------------------------------+----------'

    [debug] Loaded Private actions:

    .----------------------+--------------------------------------+--------------.
    Private | Class |
    Method |

    +----------------------+--------------------------------------+--------------+
    /default | MyApp::Controller::Root |
    default |
    /end | MyApp::Controller::Root |
    end |
    /index | MyApp::Controller::Root |
    index |

    '----------------------+--------------------------------------+--------------'

    [debug] Loaded Path actions:

    .-------------------------------------+--------------------------------------.
    Path |
    Private |

    +-------------------------------------+--------------------------------------+
    / |
    /index |
    / |
    /default |

    '-------------------------------------+--------------------------------------'

    [info] MyApp powered by Catalyst 5.80032
    You can connect to your server at http://foo:3000


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    If I create a new catalyst app, then add "sub hello ..." to the root
    controller, then reload the dev server everything is fine.

    Have you reloaded the dev server?

    Are you sure you edited the correct file and not a copy?


    If all your answers are yes please do the following:

    catalyst.pl Foo
    cd Foo
    vim lib/Foo/Controller/Root.pm
    # add 'sub hello :Global { my ( $self, $c ) = @_; $c->response->body( "Hello
    world!" ); }'
    ./script/foo_server.pl -d

    then hit /hello again

    david
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/9bb2b56f/attachment.htm
  • Brian Wolf at May 12, 2011 at 10:29 pm
    works now, phew.. seems to be an editor issue, this time i used emacs, i
    should remember i spent days having a similar problem once. but thanks for
    all the help. i definately will stay with catalyst because of it.
    On Thu, May 12, 2011 at 2:07 AM, David Schmidt wrote:


    On Thu, May 12, 2011 at 10:24 AM, Brian Wolf wrote:

    are you refering to
    "cut and paste POD doc's" ? I cut from the web page and paste into MS
    notepad, thats not enough? (my experience is that notepad removes all
    formatting)


    On Thu, May 12, 2011 at 1:12 AM, Brian Wolf wrote:

    C:\Users\ryan\Documents\Hello>script\hello_server.pl
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:

    .-------------------------------------------------------------------------
    Catalyst::Plugin::ConfigLoader 0.30
    '-------------------------------------------------------------------------

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "C:\Users\ryan\Documents\Hello"
    [debug] Loaded Config "C:\Users\ryan\Documents\Hello\hello.conf"
    [debug] Loaded components:

    .-----------------------------------------------------------------+-------
    Class | Type
    +-----------------------------------------------------------------+-------
    Hello::Controller::Root |
    instan

    '-----------------------------------------------------------------+-------

    [debug] Loaded Private actions:

    .----------------------+--------------------------------------+-----------
    Private | Class | Method
    +----------------------+--------------------------------------+-----------
    /default | Hello::Controller::Root | default
    /end | Hello::Controller::Root | end
    /index | Hello::Controller::Root | index
    '----------------------+--------------------------------------+-----------

    [debug] Loaded Path actions:

    .-------------------------------------+-----------------------------------
    Path | Private
    +-------------------------------------+-----------------------------------
    / | /index
    / | /default
    '-------------------------------------+-----------------------------------

    [info] Hello powered by Catalyst 5.80032
    You can connect to your server at http://ryan-pc:3000
    [info] *** Request 1 (0.011/s) [4444] [Wed May 11 20:33:55 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8;
    Conten
    th: 5613
    [info] Request took 0.009114s (109.721/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /index | 0.000658s

    /end | 0.000810s
    '------------------------------------------------------------+-----------'

    [info] *** Request 4 (0.001/s) [4444] [Wed May 11 21:33:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8;
    Conten
    th: 14
    [info] Request took 0.005386s (185.667/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /default | 0.000340s

    /end | 0.000402s
    '------------------------------------------------------------+-----------'

    [info] *** Request 5 (0.001/s) [4444] [Wed May 11 21:35:05 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8;
    Conten
    th: 14
    [info] Request took 0.006428s (155.569/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /default | 0.000273s

    /end | 0.000437s
    '------------------------------------------------------------+-----------'

    [info] *** Request 6 (0.002/s) [4444] [Wed May 11 21:35:22 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8;
    Conten
    th: 5613
    [info] Request took 0.004764s (209.908/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /index | 0.000508s

    /end | 0.000276s
    '------------------------------------------------------------+-----------'

    [info] *** Request 8 (0.002/s) [4444] [Wed May 11 21:42:35 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8;
    Conten
    th: 14
    [info] Request took 0.006503s (153.775/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /default | 0.000347s

    /end | 0.000414s
    '------------------------------------------------------------+-----------'

    [info] *** Request 9 (0.002/s) [4444] [Wed May 11 21:42:43 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8;
    Conten
    th: 5613
    [info] Request took 0.004757s (210.217/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /index | 0.000305s

    /end | 0.000272s
    '------------------------------------------------------------+-----------'

    [info] *** Request 10 (0.002/s) [4444] [Wed May 11 21:44:04 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8;
    Conten
    th: 14
    [info] Request took 0.006463s (154.727/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /default | 0.000262s

    /end | 0.000433s
    '------------------------------------------------------------+-----------'

    [info] *** Request 11 (0.001/s) [4444] [Wed May 11 22:58:39 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8;
    Conten
    th: 5613
    [info] Request took 0.005962s (167.729/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /index | 0.000561s

    /end | 0.000435s
    '------------------------------------------------------------+-----------'

    [info] *** Request 13 (0.001/s) [4444] [Wed May 11 22:58:54 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8;
    Conten
    th: 14
    [info] Request took 0.005385s (185.701/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /default | 0.000275s

    /end | 0.000350s
    '------------------------------------------------------------+-----------'

    [info] *** Request 14 (0.002/s) [4444] [Wed May 11 22:59:11 2011] ***
    [debug] "GET" request for "/" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Response Code: 200; Content-Type: text/html; charset=utf-8;
    Conten
    th: 5613
    [info] Request took 0.005551s (180.148/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /index | 0.000433s

    /end | 0.000502s
    '------------------------------------------------------------+-----------'

    [info] *** Request 15 (0.002/s) [4444] [Wed May 11 23:04:22 2011] ***
    [debug] "GET" request for "hello" from "127.0.0.1"
    [debug] Path is "/"
    [debug] Arguments are "hello"
    [debug] Response Code: 404; Content-Type: text/html; charset=utf-8;
    Conten
    th: 14
    [info] Request took 0.006333s (157.903/s)

    .------------------------------------------------------------+-----------.
    Action | Time
    +------------------------------------------------------------+-----------+
    /default | 0.000263s

    /end | 0.000402s
    '------------------------------------------------------------+-----------'
    On Thu, May 12, 2011 at 1:06 AM, David Schmidt wrote:


    On Thu, May 12, 2011 at 9:03 AM, Brian Wolf wrote:

    hi, i am trying out the latest catalyst (installed runtime,and devel) ,
    i am working through the tutorial , but example at the beginning to add the
    hello to root.pm, the catalyst page is fine on and
    http://localhost:3000/ works, but when i tried making the edit to
    root.pm file as shown in tutorial to do a simple url dispatch
    http://localhost:3000/ hello .... page not found

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    Can you send us the output of the development server. Should look
    something like this ...

    david@foo:~/myapp/MyApp$ ./script/myapp_server.pl -d
    [debug] Debug messages enabled
    [debug] Statistics enabled
    [debug] Loaded plugins:

    .----------------------------------------------------------------------------.
    Catalyst::Plugin::ConfigLoader
    0.30 |

    '----------------------------------------------------------------------------'

    [debug] Loaded dispatcher "Catalyst::Dispatcher"
    [debug] Loaded engine "Catalyst::Engine::HTTP"
    [debug] Found home "/home/david/myapp/MyApp"
    [debug] Loaded Config "/home/david/myapp/MyApp/myapp.conf"
    [debug] Loaded components:

    .-----------------------------------------------------------------+----------.
    Class |
    Type |

    +-----------------------------------------------------------------+----------+
    MyApp::Controller::Root |
    instance |

    '-----------------------------------------------------------------+----------'

    [debug] Loaded Private actions:

    .----------------------+--------------------------------------+--------------.
    Private | Class |
    Method |

    +----------------------+--------------------------------------+--------------+
    /default | MyApp::Controller::Root |
    default |
    /end | MyApp::Controller::Root |
    end |
    /index | MyApp::Controller::Root |
    index |

    '----------------------+--------------------------------------+--------------'

    [debug] Loaded Path actions:

    .-------------------------------------+--------------------------------------.
    Path |
    Private |

    +-------------------------------------+--------------------------------------+
    / |
    /index |
    / |
    /default |

    '-------------------------------------+--------------------------------------'

    [info] MyApp powered by Catalyst 5.80032
    You can connect to your server at http://foo:3000


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    If I create a new catalyst app, then add "sub hello ..." to the root
    controller, then reload the dev server everything is fine.

    Have you reloaded the dev server?

    Are you sure you edited the correct file and not a copy?


    If all your answers are yes please do the following:

    catalyst.pl Foo
    cd Foo
    vim lib/Foo/Controller/Root.pm
    # add 'sub hello :Global { my ( $self, $c ) = @_; $c->response->body(
    "Hello world!" ); }'
    ./script/foo_server.pl -d

    then hit /hello again

    david

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110512/33de31bd/attachment.htm

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedMay 12, '11 at 7:03a
activeMay 12, '11 at 10:29p
posts9
users4
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase