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.<br><br><div class="gmail_quote">
On Thu, May 12, 2011 at 2:07 AM, David Schmidt <span dir="ltr"><<a href="mailto:davewood@gmx.at">davewood@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, May 12, 2011 at 10:24 AM, Brian Wolf <span dir="ltr"><<a href="mailto:brw314@gmail.com" target="_blank">brw314@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
are you refering to <br>"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)<div><div></div><div>
<div><br><div><br><div><br><div class="gmail_quote">
On Thu, May 12, 2011 at 1:12 AM, Brian Wolf <span dir="ltr"><<a href="mailto:brw314@gmail.com" target="_blank">brw314@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>C:\Users\ryan\Documents\Hello>script\<a href="http://hello_server.pl" target="_blank">hello_server.pl</a></div><div><div>[debug] Debug messages enabled</div><div>[debug] Statistics enabled</div><div>[debug] Loaded plugins:</div>
<div>.-------------------------------------------------------------------------</div>
<div>| Catalyst::Plugin::ConfigLoader 0.30</div><div>'-------------------------------------------------------------------------</div><div><br></div><div>[debug] Loaded dispatcher "Catalyst::Dispatcher"</div>
<div>[debug] Loaded engine "Catalyst::Engine::HTTP"</div></div><div>[debug] Found home "C:\Users\ryan\Documents\Hello"</div><div>[debug] Loaded Config "C:\Users\ryan\Documents\Hello\hello.conf"</div>
<div>
<div>[debug] Loaded components:</div><div>.-----------------------------------------------------------------+-------</div><div>| Class | Type</div><div>+-----------------------------------------------------------------+-------</div>
</div><div>| Hello::Controller::Root | instan</div><div>'-----------------------------------------------------------------+-------</div><div><div><br></div><div>[debug] Loaded Private actions:</div>
<div>.----------------------+--------------------------------------+-----------</div><div>| Private | Class | Method</div><div>+----------------------+--------------------------------------+-----------</div>
</div><div>| /default | Hello::Controller::Root | default</div><div>| /end | Hello::Controller::Root | end</div><div>| /index | Hello::Controller::Root | index</div>
<div>
<div>'----------------------+--------------------------------------+-----------</div><div><br></div><div>[debug] Loaded Path actions:</div><div>.-------------------------------------+-----------------------------------</div>
<div>| Path | Private</div><div>+-------------------------------------+-----------------------------------</div><div>| / | /index</div><div>| / | /default</div>
<div>'-------------------------------------+-----------------------------------</div><div><br></div></div><div>[info] Hello powered by Catalyst 5.80032</div><div>You can connect to your server at <a href="http://ryan-pc:3000" target="_blank">http://ryan-pc:3000</a></div>
<div>[info] *** Request 1 (0.011/s) [4444] [Wed May 11 20:33:55 2011] ***</div><div>[debug] "GET" request for "/" from "127.0.0.1"</div><div>[debug] Path is "/"</div><div>[debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten</div>
<div>th: 5613</div><div>[info] Request took 0.009114s (109.721/s)</div><div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div>
<div>+------------------------------------------------------------+-----------+</div><div>| /index | 0.000658s |</div><div>| /end | 0.000810s |</div>
<div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 4 (0.001/s) [4444] [Wed May 11 21:33:04 2011] ***</div><div>[debug] "GET" request for "hello" from "127.0.0.1"</div>
<div>[debug] Path is "/"</div><div>[debug] Arguments are "hello"</div><div>[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 14</div><div>[info] Request took 0.005386s (185.667/s)</div>
<div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div><div>+------------------------------------------------------------+-----------+</div>
<div>| /default | 0.000340s |</div><div>| /end | 0.000402s |</div><div>'------------------------------------------------------------+-----------'</div>
<div><br></div><div>[info] *** Request 5 (0.001/s) [4444] [Wed May 11 21:35:05 2011] ***</div><div>[debug] "GET" request for "hello" from "127.0.0.1"</div><div>[debug] Path is "/"</div>
<div>[debug] Arguments are "hello"</div><div>[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 14</div><div>[info] Request took 0.006428s (155.569/s)</div><div>.------------------------------------------------------------+-----------.</div>
<div>| Action | Time |</div><div>+------------------------------------------------------------+-----------+</div><div>| /default | 0.000273s |</div>
<div>| /end | 0.000437s |</div><div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 6 (0.002/s) [4444] [Wed May 11 21:35:22 2011] ***</div>
<div>[debug] "GET" request for "/" from "127.0.0.1"</div><div>[debug] Path is "/"</div><div>[debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 5613</div>
<div>[info] Request took 0.004764s (209.908/s)</div><div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div>
<div>+------------------------------------------------------------+-----------+</div><div>| /index | 0.000508s |</div><div>| /end | 0.000276s |</div>
<div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 8 (0.002/s) [4444] [Wed May 11 21:42:35 2011] ***</div><div>[debug] "GET" request for "hello" from "127.0.0.1"</div>
<div>[debug] Path is "/"</div><div>[debug] Arguments are "hello"</div><div>[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 14</div><div>[info] Request took 0.006503s (153.775/s)</div>
<div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div><div>+------------------------------------------------------------+-----------+</div>
<div>| /default | 0.000347s |</div><div>| /end | 0.000414s |</div><div>'------------------------------------------------------------+-----------'</div>
<div><br></div><div>[info] *** Request 9 (0.002/s) [4444] [Wed May 11 21:42:43 2011] ***</div><div>[debug] "GET" request for "/" from "127.0.0.1"</div><div>[debug] Path is "/"</div>
<div>[debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 5613</div><div>[info] Request took 0.004757s (210.217/s)</div><div>.------------------------------------------------------------+-----------.</div>
<div>| Action | Time |</div><div>+------------------------------------------------------------+-----------+</div><div>| /index | 0.000305s |</div>
<div>| /end | 0.000272s |</div><div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 10 (0.002/s) [4444] [Wed May 11 21:44:04 2011] ***</div>
<div>[debug] "GET" request for "hello" from "127.0.0.1"</div><div>[debug] Path is "/"</div><div>[debug] Arguments are "hello"</div><div>[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten</div>
<div>th: 14</div><div>[info] Request took 0.006463s (154.727/s)</div><div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div>
<div>+------------------------------------------------------------+-----------+</div><div>| /default | 0.000262s |</div><div>| /end | 0.000433s |</div>
<div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 11 (0.001/s) [4444] [Wed May 11 22:58:39 2011] ***</div><div>[debug] "GET" request for "/" from "127.0.0.1"</div>
<div>[debug] Path is "/"</div><div>[debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 5613</div><div>[info] Request took 0.005962s (167.729/s)</div><div>.------------------------------------------------------------+-----------.</div>
<div>| Action | Time |</div><div>+------------------------------------------------------------+-----------+</div><div>| /index | 0.000561s |</div>
<div>| /end | 0.000435s |</div><div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 13 (0.001/s) [4444] [Wed May 11 22:58:54 2011] ***</div>
<div>[debug] "GET" request for "hello" from "127.0.0.1"</div><div>[debug] Path is "/"</div><div>[debug] Arguments are "hello"</div><div>[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten</div>
<div>th: 14</div><div>[info] Request took 0.005385s (185.701/s)</div><div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div>
<div>+------------------------------------------------------------+-----------+</div><div>| /default | 0.000275s |</div><div>| /end | 0.000350s |</div>
<div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 14 (0.002/s) [4444] [Wed May 11 22:59:11 2011] ***</div><div>[debug] "GET" request for "/" from "127.0.0.1"</div>
<div>[debug] Path is "/"</div><div>[debug] Response Code: 200; Content-Type: text/html; charset=utf-8; Conten</div><div>th: 5613</div><div>[info] Request took 0.005551s (180.148/s)</div><div>.------------------------------------------------------------+-----------.</div>
<div>| Action | Time |</div><div>+------------------------------------------------------------+-----------+</div><div>| /index | 0.000433s |</div>
<div>| /end | 0.000502s |</div><div>'------------------------------------------------------------+-----------'</div><div><br></div><div>[info] *** Request 15 (0.002/s) [4444] [Wed May 11 23:04:22 2011] ***</div>
<div>[debug] "GET" request for "hello" from "127.0.0.1"</div><div>[debug] Path is "/"</div><div>[debug] Arguments are "hello"</div><div>[debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Conten</div>
<div>th: 14</div><div>[info] Request took 0.006333s (157.903/s)</div><div>.------------------------------------------------------------+-----------.</div><div>| Action | Time |</div>
<div>+------------------------------------------------------------+-----------+</div><div>| /default | 0.000263s |</div><div>| /end | 0.000402s |</div>
<div>'------------------------------------------------------------+-----------'</div><div><div></div><div><br><div class="gmail_quote">On Thu, May 12, 2011 at 1:06 AM, David Schmidt <span dir="ltr"><<a href="mailto:davewood@gmx.at" target="_blank">davewood@gmx.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div>On Thu, May 12, 2011 at 9:03 AM, Brian Wolf <span dir="ltr"><<a href="mailto:brw314@gmail.com" target="_blank">brw314@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<div><span>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 <a href="http://root.pm" target="_blank">root.pm</a>, the catalyst page is fine on and <a href="http://localhost:3000/" target="_blank">http://localhost:3000/</a><span> </span>works, but when i tried making the edit to <a href="http://root.pm" target="_blank">root.pm</a> file as shown in tutorial to do a simple url dispatch<span> </span><a href="http://localhost:3000/" target="_blank">http://localhost:3000/</a> hello .... </span> page not found</div>
<br></div><div>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></div></blockquote></div><br>Can you send us the output of the development server. Should look something like this ...<br><br>david@foo:~/myapp/MyApp$ ./script/<a href="http://myapp_server.pl" target="_blank">myapp_server.pl</a> -d<br>
[debug] Debug messages enabled<br>
[debug] Statistics enabled<br>[debug] Loaded plugins:<br>.----------------------------------------------------------------------------.<br>| Catalyst::Plugin::ConfigLoader 0.30 |<br>
'----------------------------------------------------------------------------'<br><br>[debug] Loaded dispatcher "Catalyst::Dispatcher"<br>[debug] Loaded engine "Catalyst::Engine::HTTP"<br>[debug] Found home "/home/david/myapp/MyApp"<br>
[debug] Loaded Config "/home/david/myapp/MyApp/myapp.conf"<br>[debug] Loaded components:<br>.-----------------------------------------------------------------+----------.<br>| Class | Type |<br>
+-----------------------------------------------------------------+----------+<br>| MyApp::Controller::Root | instance |<br>'-----------------------------------------------------------------+----------'<br>
<br>[debug] Loaded Private actions:<br>.----------------------+--------------------------------------+--------------.<br>| Private | Class | Method |<br>+----------------------+--------------------------------------+--------------+<br>
| /default | MyApp::Controller::Root | default |<br>| /end | MyApp::Controller::Root | end |<br>| /index | MyApp::Controller::Root | index |<br>
'----------------------+--------------------------------------+--------------'<br><br>[debug] Loaded Path actions:<br>.-------------------------------------+--------------------------------------.<br>| Path | Private |<br>
+-------------------------------------+--------------------------------------+<br>| / | /index |<br>| / | /default |<br>
'-------------------------------------+--------------------------------------'<br><br>[info] MyApp powered by Catalyst 5.80032<br>You can connect to your server at <a href="http://foo:3000" target="_blank">http://foo:3000</a><br>
<br>
<br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
</div></div><br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br><br></div></div>If I create a new catalyst app, then add "sub hello ..." to the root controller, then reload the dev server everything is fine.<br><br>Have you reloaded the dev server?<br>
<br>Are you sure you edited the correct file and not a copy?<br>
<br><br>If all your answers are yes please do the following:<br><br><a href="http://catalyst.pl" target="_blank">catalyst.pl</a> Foo<br>cd Foo<br>vim lib/Foo/Controller/Root.pm<br># add 'sub hello :Global { my ( $self, $c ) = @_; $c->response->body( "Hello world!" ); }' <br>
./script/<a href="http://foo_server.pl" target="_blank">foo_server.pl</a> -d<br><br>then hit /hello again<br><font color="#888888"><br>david<br>
</font><br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br>