title: The ResourceConfig instance does not contain any root resource classes
body: <p>What's going wrong here?</p>
  
  <pre><code>The ResourceConfig instance does not contain any root resource classes.
  Dec 10, 2010 10:21:24 AM com.sun.jersey.spi.spring.container.servlet.SpringServlet initiate
  SEVERE: Exception occurred when intialization
  com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
          at com.sun.jersey.server.impl.application.RootResourceUriRules.&lt;init&gt;(RootResourceUriRules.java:103)
          at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1182)
          at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:161)
          at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:698)
          at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:695)
          at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:197)
          at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:695)
          at com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:117)
  </code></pre>
  
  <p>Filter:</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;JerseyFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;com.sun.jersey.spi.spring.container.servlet.SpringServlet&lt;/filter-class&gt;
  
      &lt;init-param&gt;
          &lt;param-name&gt;com.sun.jersey.config.feature.Redirect&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
  
      &lt;init-param&gt;
          &lt;param-name&gt;com.sun.jersey.config.property.JSPTemplatesBasePath&lt;/param-name&gt;
          &lt;param-value&gt;/views/&lt;/param-value&gt;
      &lt;/init-param&gt;
  
      &lt;init-param&gt;
          &lt;param-name&gt;com.sun.jersey.config.property.WebPageContentRegex&lt;/param-name&gt;
          &lt;param-value&gt;/(images|css|jsp)/.*&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;JerseyFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/myresource/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>@Path ("/admin")
  public class AdminUiResource {
  
    @GET
    @Produces ("text/html")
    @Path ("/singup")
    public Viewable getSignUp () {
      return new Viewable("/public/signup", "Test");
    }
  }
  </code></pre>