title: How do I get a JAX-RS application running on WebSphere 8.5
body: <p>So I am tring to get a JAX-RS application working on my WebSphere 8.5 instance. I created the following interface...</p>
  
  <pre><code>@Path("service")
  public class RestService {
  
      @GET
      @Produces("text/plain")
      public int getCount(){
          return 1;
      }
  }
  </code></pre>
  
  <p>And This is my Application...</p>
  
  <pre><code>public class RESTConfig extends Application{
      @Override
      public Set&lt;Class&lt;?&gt;&gt; getClasses() {
          Set&lt;Class&lt;?&gt;&gt; classes = new Hashset&lt;?&gt;();
          classes.add(RestService.class);
          return classes;
      }
  }
  </code></pre>
  
  <p>And then this is my web.xml...</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;Rest Servlet&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;jaxrs.ws.rs.Application&lt;/param-name&gt;
          &lt;param-value&gt;com.company.rest.RESTConfig&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;Rest Servlet&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>Then I have an EAR configured with the WAR as a module. But when I start everything and try going to http://localhost:[port]/war/rest/app/service I see..</p>
  
  <blockquote>
    <p>[TIME] 00000115 RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (404 - Not Found) with message 'null' while processing GET request sent to http://localhost:[port]/war/rest/service</p>
  </blockquote>
  
  <p>Please Help!</p>