title: ResourceConfig instance does not contain any root resource classes
body: <p>I can't seem to get my jersey resources recognized in my app. According to everything I read online, there are two possible cases where this may happen.</p>
  
  <ol>
  <li>There is no valid package declared in the web.xml under com.sun.jersey.config.property.packages.</li>
  </ol>
  
  <p>This is my web.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;web-app version="3.0"
       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"
       metadata-complete="false"&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
          com.sun.jersey.spi.container.servlet.ServletContainer
      &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;my.package&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 REST Service&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>:
  2. There is no valid resource class in my.package.</p>
  
  <p>My resource class:</p>
  
  <pre class="lang-java prettyprint-override"><code>package my.package;
  
  import javax.ws.rs.Path;
  import javax.ws.rs.GET;
  import javax.ws.rs.core.Response;
  
  @Path("/")
  class MyClass{
  
  @GET
  public Response asdf(){
      return Response.ok().build();
  }
  
  @Path("/test")
  @GET
  public Response test(){
      return Response.ok().build();
  }
  }
  </code></pre>
  
  <p>As far as I can tell, neither of these two conditions are satisfied.</p>
  
  <p>For the sake of completion, here are my dependencies:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
          &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
          &lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
          &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;1.17&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-bundle&lt;/artifactId&gt;
          &lt;version&gt;1.17&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-servlet&lt;/artifactId&gt;
          &lt;version&gt;1.17&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Any ideas as to why I might be getting this error?</p>