com.sun.jersey.api.container.ContainerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Atmosphere guice jersey
    via Stack Overflow by Rinat Mukhamedgaliev
    ,
  • Sample stacktrace from attempting to ingest a demo object via the REST API SEVERE: The ResourceConfig instance does not contain any root resource classes. ERROR 2009-10-09 15:35:18.619 [http-8080-2] ([/fedora]) StandardWrapper.Throwable com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:613) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:492) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:319) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:652) at com.sun.jersey.spi.container.servlet.ServletContainer.load(ServletContainer.java:540) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:207) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) ERROR 2009-10-09 15:35:18.620 [http-8080-2] ([RestServlet]) Allocate exception for servlet RestServlet com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:613) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:492) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:319) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:652) at com.sun.jersey.spi.container.servlet.ServletContainer.load(ServletContainer.java:540) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:207) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613)
    via by Edwin Shin,
  • Tomcat 7 Support
    via GitHub by novalis
    ,
  • java 6 and guice?
    via by nino martinez wael,
    • com.sun.jersey.api.container.ContainerException: [failed to localize] no.root.res.in.res.cfg() at com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:718) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:590) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:383) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:377) at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:242)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,