title: Java REST - 404 resource can not be found
body: <p>I am trying to access a resource on my Hello world (for now) application.
  However, I get this HTTP status 404 - not found when I deploy it ot Tomcat and hit the URL: localhost:8080/test/rest.
  Here are my pom.xml depdendencies:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-common&lt;/artifactId&gt;
          &lt;version&gt;2.26-b03&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
         &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
         &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
         &lt;version&gt;2.26-b03&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.1.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-container-servlet&lt;/artifactId&gt;
          &lt;version&gt;2.26-b03&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
         &lt;groupId&gt;junit&lt;/groupId&gt;
         &lt;artifactId&gt;junit&lt;/artifactId&gt;
         &lt;version&gt;4.11&lt;/version&gt;
         &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And here are my web.xml configurations:</p>
  
  <pre><code>&lt;web-app&gt;
      &lt;display-name&gt;Archetype Created Web Application&lt;/display-name&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;HelloWorld Jersey Service &lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
  &lt;init-param&gt;
      &lt;param-name &gt;jersey.config.server.provider.packages&lt;/param-name&gt;
      &lt;param-value &gt;com.latin.translator.app&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;HelloWorld Jersey Service &lt;/servlet-name &gt;
      &lt;url-pattern &gt;/test/*&lt;/url-pattern &gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>The java code is:</p>
  
  <pre><code>@Path("/test")
  public class Test {
  
      @GET
      @Produces(TEXT_PLAIN)
      @Path("/rest")
      public String test() {
          return "Great success";
      }
  }
  </code></pre>
  
  <p>Do you have any ideas what I am doing wrong?</p>