Hello Sam,
I think this issue is due to the routing and the matching strategy.
Before the 2.0m6 release, a router detected the best route according to
the "start_with" mode. At this time, this default strategy has been
replaced by the "equals" mode, which is clearly not appropriate with
your hierarchical structure.
That is to say: "/sub/a/b" is not equals to the first defined segment
"/sub", it simply "starts with".
Therefore, I suggest that you updated the default routing strategy of
the RootApplication's router:
router.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
Best regards,
Thierry Boileau
> I am trying to create an application on GAE using the Restlet-GAE M6 ..
>
> I ran into a problem when trying to attach an sub Application to the root
> Application ..
>
> here is what I am trying to do:
> public class RootApplication extends Application {
>
> @Override
> public Restlet createInboundRoot() {
> Router router = new Router(getContext());
>
> router.attach("/a/", new SubApplication());
> return router;
> }
> }
>
> public class SubApplication extends Application {
>
> @Override
> public Restlet createInboundRoot() {
> Router router = new Router(getContext());
>
> router.attach("b/", HelloWorldHelloWorldResource.class);
> return router;
> }
> }
>
> public class HelloWorldResource extends ServerResource {
>
> @Get
> public String represenxst() {
> return "hello, world (from the cloud!)";
> }
>
> }
>
>
> I have tested this on the SE edition and it worked fine when I go to /a/b/
> url it works as expected .. but on GAE it does not work
>
> any suggestions on why this is happening?
>
> Thanks in advance
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423740
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423816