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.

  • G's Blog: Running JAX-RS/Jersey/JSR311 on weblogic
    via by Unknown author,
  • 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,
  • 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,
    • com.sun.jersey.api.container.ContainerException: Method, public javax.ws.rs.core.Response io.swagger.jaxrs.listing.AcceptHeaderApiListingResource.getListingYaml(javax.ws.rs.core.Application,javax.servlet.ServletConfig,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), annotated with GET of resource, class io.swagger.jaxrs.listing.AcceptHeaderApiListingResource, is not recognized as valid Java method annotated with @HttpMethod. at com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:92) at com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:69) at com.sun.jersey.server.impl.model.method.ResourceHttpMethod.<init>(ResourceHttpMethod.java:61) at com.sun.jersey.server.impl.model.ResourceClass.processMethods(ResourceClass.java:311) at com.sun.jersey.server.impl.model.ResourceClass.<init>(ResourceClass.java:133) at com.sun.jersey.server.impl.application.WebApplicationImpl.newResourceClass(WebApplicationImpl.java:554) at com.sun.jersey.server.impl.application.WebApplicationImpl.getResourceClass(WebApplicationImpl.java:517) at com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:1147) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:912) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:589) at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:403) at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:252) at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:550) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:201) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:307) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:470) at javax.servlet.GenericServlet.init(GenericServlet.java:240) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34) at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)

    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,