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 <[email protected]>

> 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 <[email protected]> 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
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3043675

Reply via email to