Ok, I'm going to investigate the 2nd way, seems to fit my need. Thanks for the quick reply.
-- Julien Balas JDAS Rennes -----Message d'origine----- De : Jerome Louvel [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 juillet 2007 16:59 À : [email protected] Objet : Re: Multiples rest service using multiples servlet in tomcat. Julien, The ServerServlet was designed to adapt on Servlet Webapp to exactly one Restlet Application. The ServerServlet caches the instantiated application inside the Webapp context which explains the behavior you observe. This needs to be better documented in the Javadocs. Now, there are different ways to achieve what you need: 1) Create two WARs, on for each Restlet Application, with only one ServerServlet in each 2) Merge your two Restlet Applications into one, and add a Router at the root of this app to handle the routing internally. 3) Rely on the ServletConverter to have a lower level integration between your Servlets and Restlets (but you loose portability to Restlet standalone mode). Hope this helps, Jerome Balas Julien a écrit : >> The Restlet framework is throwing this error because, as it implies, >> it cannot match the URI to anything that it has mapped. >> > > But it match the first servlet called.... > And if I restart the tomcat server and call the 2nd servlet, the 2nd > servlet works. > > >> When I decompressed your WAR file, there is no web.xml in the main >> > WEB-INF directory, > >> but rather in the EventViewer/WEB-INF, which I don't think Tomcat >> will >> > find. > > I think the web.xml is in the right place as one of the servlet is > working. > And if I call a "foobar" servlet I get a tomcat error. > And I don't get this tomcat error with any of my servlet. > Did you try to deploy the war in tomcat ? Tested with tomcat 5.5 and > 6.0. > > >> Hopefully Jerome will correct me, but can you setup an Application >> per >> > ServerServlet like this: > > I can't find any difference with the web.xml included in my war.... > Except for the XML header. > >

