rest - Jersey 1.18.1 is unable to pick my restful service when deployed on Jboss 7.1.1 final -


i have confusing problem me. have eclipse restful service project being built gradle. can build , run application in tomcat 7.0.54, within eclipse , deploying war directly in /webapps folder of tomcat.

but when deploy same war in jboss 7.1.1 final, gives me below error.

10:43:45,390 warn  [org.jboss.jaxrs] (msc service thread 1-7) jbas011204: resteasy.scan found , ignored in web.xml. not necessary, resteasy use container integration in jax-rs 1.1 specification in section 2.3.2 10:43:45,390 warn  [org.jboss.jaxrs] (msc service thread 1-7) jbas011204: resteasy.scan.providers found , ignored in web.xml. not necessary, resteasy use container integration in jax-rs 1.1 specification in section 2.3.2 10:43:45,391 warn  [org.jboss.jaxrs] (msc service thread 1-7) jbas011204: resteasy.scan.resources found , ignored in web.xml. not necessary, resteasy use container integration in jax-rs 1.1 specification in section 2.3.2 10:43:46,128 info  [com.sun.jersey.api.core.packagesresourceconfig] (msc service thread 1-2) scanning root resource , provider classes in packages:   com.xxx.xxx.xxx.xxx.impl   org.codehaus.jackson.jaxrs 10:43:46,534 info  [com.sun.jersey.server.impl.application.webapplicationimpl] (msc service thread 1-2) initiating jersey application, version 'jersey: ${project.version} ${buildnumber}' 10:43:47,372 severe [com.sun.jersey.server.impl.application.rootresourceurirules] (msc service thread 1-2) resourceconfig instance not contain root resource classes. 10:43:47,373 error [org.apache.catalina.core.containerbase.[jboss.web].[default-host].[/xxxxxx]] (msc service thread 1-2) standardwrapper.throwable: com.sun.jersey.api.container.containerexception: resourceconfig instance not contain root resource classes.     @ com.sun.jersey.server.impl.application.rootresourceurirules.<init>(rootresourceurirules.java:99) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl._initiate(webapplicationimpl.java:1359) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl.access$700(webapplicationimpl.java:180) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:799) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:795) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.inject.errors.processwitherrors(errors.java:193) [jersey-core-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:795) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:790) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer.initiate(servletcontainer.java:491) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer$internalwebcomponent.initiate(servletcontainer.java:321) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.webcomponent.load(webcomponent.java:605) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.webcomponent.init(webcomponent.java:207) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:376) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:559) [jersey-servlet-1.18.1.jar:1.18.1]     @ javax.servlet.genericservlet.init(genericservlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.final.jar:1.0.0.final]     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1202) [jbossweb-7.0.13.final.jar:]     @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1102) [jbossweb-7.0.13.final.jar:]     @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:3655) [jbossweb-7.0.13.final.jar:]     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:3873) [jbossweb-7.0.13.final.jar:]     @ org.jboss.as.web.deployment.webdeploymentservice.start(webdeploymentservice.java:90) [jboss-as-web-7.1.1.final.jar:7.1.1.final]     @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811)     @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [rt.jar:1.7.0_60]     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [rt.jar:1.7.0_60]     @ java.lang.thread.run(thread.java:745) [rt.jar:1.7.0_60]  10:43:47,388 error [org.apache.catalina.core.containerbase.[jboss.web].[default-host].[/taxation]] (msc service thread 1-2) servlet /xxxxxxx threw load() exception: com.sun.jersey.api.container.containerexception: resourceconfig instance not contain root resource classes.     @ com.sun.jersey.server.impl.application.rootresourceurirules.<init>(rootresourceurirules.java:99) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl._initiate(webapplicationimpl.java:1359) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl.access$700(webapplicationimpl.java:180) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:799) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:795) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.inject.errors.processwitherrors(errors.java:193) [jersey-core-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:795) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.server.impl.application.webapplicationimpl.initiate(webapplicationimpl.java:790) [jersey-server-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer.initiate(servletcontainer.java:491) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer$internalwebcomponent.initiate(servletcontainer.java:321) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.webcomponent.load(webcomponent.java:605) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.webcomponent.init(webcomponent.java:207) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:376) [jersey-servlet-1.18.1.jar:1.18.1]     @ com.sun.jersey.spi.container.servlet.servletcontainer.init(servletcontainer.java:559) [jersey-servlet-1.18.1.jar:1.18.1]     @ javax.servlet.genericservlet.init(genericservlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.final.jar:1.0.0.final]     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1202) [jbossweb-7.0.13.final.jar:]     @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1102) [jbossweb-7.0.13.final.jar:]     @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:3655) [jbossweb-7.0.13.final.jar:]     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:3873) [jbossweb-7.0.13.final.jar:]     @ org.jboss.as.web.deployment.webdeploymentservice.start(webdeploymentservice.java:90) [jboss-as-web-7.1.1.final.jar:7.1.1.final]     @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811)     @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [rt.jar:1.7.0_60]     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [rt.jar:1.7.0_60]     @ java.lang.thread.run(thread.java:745) [rt.jar:1.7.0_60] 

moreover, when unpack war folder , deploy folder inside jboss, works! works if run project in jboss directly eclipse. however, if export project war (from eclipse) , deploy war file jboss, again gives me same problem.

when drilled down the code of jersey, found com.sun.jersey.core.spi.scanning.uri.fileschemescanner not able pick class files war.

please resolve issue.

i found solution, , post else benefit. problem there in our build script. using different version of jersey libraries. of libraries, version 1.18.1 being used, while other version 1.18 being used.

once version libraries updated 1.18.1, worked perfectly.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -