Hi,
I'm trying to run the firstResource example as a servlet but keep getting a 404. The example runs fine using a Component on localhost using
Reference itemsUri = new Reference("
http://localhost:8182/firstResource/items");
but when I deploy it to Glassfish2.1 and change itemsUri to "
http://myHost:8080/firstResource/items" I get a 404 not found. Viewing myHost:8080/firstResource gives me a directory listing.
I was able to deploy the first steps aplication to glassfish without a problem. I can only assume there's something wrong with my web.xml file?
Here it is:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://java.sun.com/xml/ns/javaee" xmlns:web="
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>firstResourceservlet</display-name>
<context-param>
<param-name>org.restlet.application</param-name>
<param-value>firstResource.FirstResourceApplication</param-value>
</context-param>
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>com.noelios.restlet.ext.servlet.ServerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/items/*</url-pattern>
</servlet-mapping>
</web-app>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2413453