users@jersey.java.net

[Jersey] The ResourceConfig instance does not contain any root resource classes

From: cmdotmani <cmdotmani_at_gmail.com>
Date: Fri, 10 Dec 2010 10:29:34 -0800 (PST)

Dec 10, 2010 10:21:24 AM
com.sun.jersey.server.impl.application.RootResourceUriRules <init>
SEVERE: 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.<init>(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)



<filter>
      <filter-name>JerseyFilter</filter-name>
     
<filter-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</filter-class>

      <init-param>
          <param-name>com.sun.jersey.config.feature.Redirect</param-name>
          <param-value>true</param-value>
      </init-param>
      <init-param>
       
<param-name>com.sun.jersey.config.property.JSPTemplatesBasePath</param-name>
        <param-value>/views/</param-value>
      </init-param>
      <init-param>
         
<param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
          <param-value>/(images|css|jsp)/.*</param-value>
      </init-param>
  </filter>
  <filter-mapping>
      <filter-name>JerseyFilter</filter-name>
      <url-pattern>/myresource/*</url-pattern>
  </filter-mapping>


@Path ("/admin")
public class AdminUiResource {

  @GET
  @Produces ("text/html")
  @Path ("/singup")
  public Viewable getSignUp () {
    return new Viewable("/public/signup", "Test");
  }

}
-- 
View this message in context: http://jersey.576304.n2.nabble.com/The-ResourceConfig-instance-does-not-contain-any-root-resource-classes-tp5824167p5824167.html
Sent from the Jersey mailing list archive at Nabble.com.