Balas Julien wrote:
I'm using 1.0.2
The very strange thing is that I have a previous version of my app and the 2 
servlets are working perfectly.
(I can prove it with a war) :)
But I can't find the differences.
The web.xml is the same
The .class files are the same.

I tried the war on another tomcat (on a Linux box) as well, just to be sure 
it's not a problem on my machine.
I get the same "404 error".

Btw, who is sending this error?
The restlet framework ? Is there a way to get more information during the execution of the framework ?


The Restlet framework is throwing this error because, as it implies, it cannot match the URI to anything that it has mapped. 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. Hopefully Jerome will correct me, but can you setup an Application per ServerServlet like this:

<web-app>
 <display-name>JDAS Event Resolver</display-name>

 <servlet>
   <servlet-name>ServerServletUN</servlet-name>
<servlet-class>com.noelios.restlet.ext.servlet.ServerServlet</servlet-class>
   <init-param>
     <param-name>org.restlet.application</param-name>
     <param-value>com.deere.ujh813.eventViewer.rest.Hello1</param-value>
   </init-param>
 </servlet>

 <servlet>
   <servlet-name>ServerServletDEUX</servlet-name>
<servlet-class>com.noelios.restlet.ext.servlet.ServerServlet</servlet-class>
   <init-param>
     <param-name>org.restlet.application</param-name>
     <param-value>com.deere.ujh813.eventViewer.rest.Hello2</param-value>
   </init-param>
 </servlet>

 <servlet-mapping>
   <servlet-name>ServerServletUN</servlet-name>
   <url-pattern>/rest1/*</url-pattern>
 </servlet-mapping>

 <servlet-mapping>
   <servlet-name>ServerServletDEUX</servlet-name>
   <url-pattern>/rest2/*</url-pattern>
 </servlet-mapping>

</web-app>


Thanks,
Dustin

Reply via email to