On Thu, May 12, 2011 at 10:24 AM, Brian Wolf <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote: >> >>> >>> >>> On Thu, May 12, 2011 at 9:03 AM, Brian Wolf <[email protected]> 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: [email protected] >>>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >>>> Searchable archive: >>>> http://www.mail-archive.com/[email protected]/ >>>> 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: [email protected] >>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >>> Searchable archive: >>> http://www.mail-archive.com/[email protected]/ >>> Dev site: http://dev.catalyst.perl.org/ >>> >>> >> > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > 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: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
