0 Replies Latest reply on Jun 12, 2013 10:46 AM by Michel Prevost

    Jersey and container exception

    Michel Prevost Newbie

      I have the following exception when starting Wildfly  (8.0.0.Alpha2-SNAPSHOT):

       

      10:37:12,535 SEVERE [com.sun.jersey.server.impl.application.RootResourceUriRules] (MSC service thread 1-3) The ResourceConfig instance does not contain any root resource classes.

      10:37:12,536 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.undertow.deployment.default-host./SomeService: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-host./SomeService: Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1898) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

      Caused by: 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:99)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1298)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:169)

              at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:775)

              at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:771)

              at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:771)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:766)

              at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:488)

              at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)

              at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:609)

              at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)

              at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)

              at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)

              at javax.servlet.GenericServlet.init(GenericServlet.java:244)

              at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:146)

              at io.undertow.servlet.core.ManagedServlet.start(ManagedServlet.java:63)

              at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:370)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:75)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1942) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1875) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]

              ... 3 more

       

      I don't know where to look, because all places where they talk about this error does not correspond to what we have.

       

      Thanks for the help,

      Michel