This thread helps me understand some things too, thank you! Since we are trying to complete the picture :-)
The myWar war name Thierry mentions becomes the default <context-root>, but that can be changed. When you package the war into ear, in the application deployment descriptor in myEar/META-INF/application.xml. Ex to have URI like: http://localhost/myrest/testServlet/testResource in application.xml specify: <display-name>myEar</display-name> ... <web-uri>myWar.war</web-uri> <context-root>myrest</context-root> ... "Thierry Boileau" <[EMAIL PROTECTED]> wrote in message > Let's say that the name of the WAR file is myWar. > > 1- Let's say that the RestletServlet is configured like this : > <url-pattern>/testServlet/*</url-pattern> > and the application as follow: > router.attach("/testResource",HelloWorldResource.class); > then, the resource'URI is something like this: > http://localhost/myWar/testServlet/testResource

