title: Websphere 8.x and REST
body: <p>I am working to get REST services working in Websphere 8.x but when I use the following web.xml...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    version="3.0"&gt; 
  
  &lt;servlet&gt;
      &lt;display-name&gt;jersey&lt;/display-name&gt;
      &lt;servlet-name&gt;jersey&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
                   com.ibm.websphere.jaxrs.server.IBMRestServlet
      &lt;/servlet-class&gt;
      &lt;init-param&gt;
           &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
           &lt;param-value&gt;org.gleason.rest&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;jersey&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>When I try to start the app I get a 404, also eclipse shows the following build error...</p>
  
  <blockquote>
    <p>Description    Resource    Path    Location    Type
    The servlet mapping "jersey" refers to a servlet that is not defined    web.xml /RestTest/WebContent/WEB-INF    Unknown Web Problem</p>
  </blockquote>
  
  <p>This leads me to believe it is not building properly and that is why my index.html works but the JAX-RS fails.</p>
  
  <p>Can anyone see what I am missing? All the examples revolve around Application, I would rather use package.</p>