Hi Pier, I saw and reported exactly the behaviour that you are seeing, in the topic
Newbie needs help with @Post in this list. The behaviour occurred was on XP and IE9. The behaviour went away when I used the source code attached to that Post in test_Geoffrey.zip, which was a better formed and a bit more complex. Thanks Thierry Boileau I also had issues with the CLAP loader (in testGeoffrey.zip) as recently mentioned on another post to this list. My learning is that minimal implementations using Restlet are subject to errors that are unusual and not logged anywhere. Also that users of this list expect a lot of non-Restlet Java & Web knowledge. So Pier, complex it up a bit and your problem may go away as mine did. Cheers, Geoff Speedy | Principal Report Developer Geoffrey Speedy | Principal Report Developer, Reports & GIS Team | Information Management and Technology Department of Human Services | Level 10, 2 Lonsdale Street, Melbourne p. 9096 7243 | f. 9096 9100 | e. geoffrey.spe...@dhs.vic.gov.au | www.dhs.vic.gov.au Corporate Services | Innovative business solutions for better client outcomes From: Jerome Louvel <jlou...@restlet.com> To: discuss@restlet.tigris.org Date: 16/01/2013 05:39 AM Subject: Re: strange routing behaviour Hi Pier, Could you give us additional details? Are you using Restlet in standalone/JSE mode? If so, are you containing your Restlet application within a Component and under a VirtualHost? Thanks, Jerome -- http://restlet.com http://twitter.com/#!/jlouvel 2013/1/15 Pier Luigi Rocca <rocc...@gmail.com> I cannot reproduce the problem today. I always get a 404 attaching "test" or "/test" or "/test/" It works if I attach the entire address "http://nameofmydomain.com:2828/test", but then I should call "http://nameofmydomain.com:2828/test" in the browser, adding a slash in the end would get again a 404 not found. Also calling "http://localhost:2828/test" wouldn't work. What am I doing wrong? Can someone explain me this routing principle a little better? On 14 January 2013 19:21, Pier Luigi Rocca <rocc...@gmail.com> wrote: > Let's say I create a simple Router > > @Override > public Restlet createInboundRoot() { > Router router = new Router(getContext()); > router.attach("test", TestResource.class); > return router; > } > > now, if i call http://mydomain.com:2828/test with a browser i get "Not > Found The server has not found anything matching the request URI" > > but if i call http://mydomain.com:2828/test/ the TestResource is > routed correctly > > instead > > if i call both http://localhost:2828/test or > http://localhost:2828/test/ then i get a Not Found again... > > the only difference is the slash at the end of the URL. I don't know > if this has anything to do with it but I'm using a dynamic dns service > (no-ip.org) to resolve my computer ip address. > > I'm using Restlet 2.1.1 > > thanks in advance, > Pier Luigi ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3043582 _________________________________________________________________________________ This email contains confidential information intended only for the person named above and may be subject to legal privilege. If you are not the intended recipient, any disclosure, copying or use of this information is prohibited. The Department provides no guarantee that this communication is free of virus or that it has not been intercepted or interfered with. If you have received this email in error or have any other concerns regarding its transmission, please notify postmas...@dhs.vic.gov.au _________________________________________________________________________________ ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3044918