resteasy - JBoss REST with SIP Servlet - Class Not Found due java.lang.LinkageError -


i working on war module has run on jboss 7.1 sip (mobicent).

my project structure:

package: sip.multimediaconference   -jaxrsactivator.java   -multimediaconferenceimpl.java   -servletsipmultimediaconfernece.java   ... 

multimediaconferemcimple.java

@path("multimediaconference") public class multimediaconferenceimpl implements multimediaconference {  ... @get @path("/test") @produces(mediatype.text_plain) public string say() {     return "hello jersey"; } ... 

via

http://localhost:8080/conffirstconvert/rest/multimediaconference/test 

i should "hello jersey" displayed. instead of 2 errors:

15:37:56,523 info  [org.jboss.resteasy.spi.resteasydeployment] (http-localhost/127.0.0.1:8080-1) deploying javax.ws.rs.core.application: class sip.multimediaconference.jaxrsactivator 15:37:56,525 warn  [org.jboss.modules] (http-localhost/127.0.0.1:8080-1) failed define class sip.multimediaconference.multimediaconferenceimpl in module "deployment.conffirstconvert.war:main" service module loader: java.lang.linkageerror: failed link sip/multimediaconference/multimediaconferenceimpl (module "deployment.conffirstconvert.war:main" service module loader)     @ org.jboss.modules.moduleclassloader.defineclass(moduleclassloader.java:396)     @ org.jboss.modules.moduleclassloader.loadclasslocal(moduleclassloader.java:243)     @ org.jboss.modules.moduleclassloader$1.loadclasslocal(moduleclassloader.java:73)     @ org.jboss.modules.module.loadmoduleclass(module.java:527)     @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:182)     @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:468)     @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:456)     @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:398)     @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:120)     @ org.jboss.resteasy.spi.resteasydeployment.registration(resteasydeployment.java:361) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.spi.resteasydeployment.start(resteasydeployment.java:225) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.plugins.server.servlet.servletcontainerdispatcher.init(servletcontainerdispatcher.java:67) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.plugins.server.servlet.httpservletdispatcher.init(httpservletdispatcher.java:36) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1202) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardwrapper.allocate(standardwrapper.java:952) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:188) [jbossweb-7.0.16.final.jar:]     @ org.mobicents.servlet.sip.startup.sipstandardcontextvalve.invoke(sipstandardcontextvalve.java:255)     @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:153) [jboss-as-web-7.1.2.final.jar:7.1.2.final]     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:155) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:368) [jbossweb-7.0.16.final.jar:]     @ org.apache.coyote.http11.http11processor.process(http11processor.java:877) [jbossweb-7.0.16.final.jar:]     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:679) [jbossweb-7.0.16.final.jar:]     @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:931) [jbossweb-7.0.16.final.jar:]     @ java.lang.thread.run(thread.java:724) [rt.jar:1.7.0_25] caused by: java.lang.noclassdeffounderror: org/csapi/wsdl/parlayx/multimedia_conference/v4_0/_interface/multimediaconference     @ java.lang.classloader.defineclass1(native method) [rt.jar:1.7.0_25]     @ java.lang.classloader.defineclass(classloader.java:788) [rt.jar:1.7.0_25]     @ java.security.secureclassloader.defineclass(secureclassloader.java:142) [rt.jar:1.7.0_25]     @ org.jboss.modules.moduleclassloader.dodefineorloadclass(moduleclassloader.java:327)     @ org.jboss.modules.moduleclassloader.defineclass(moduleclassloader.java:391)     ... 25 more caused by: java.lang.classnotfoundexception: org.csapi.wsdl.parlayx.multimedia_conference.v4_0._interface.multimediaconference [module "deployment.conffirstconvert.war:main" service module loader]     @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:190)     @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:468)     @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:456)     @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:398)     @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:120)     ... 30 more 

i checked maven dependencies , correct eclipse lists parlayx_bundle4-1.1.-snapshot.jar multimediaconferenc.class in org.csapi.wsdl.parlayx.multimedia_conference.v4_0._interface.

the 2nd error is:

15:37:56,532 error [org.apache.catalina.core.containerbase.[jboss.web].[default-host].[/conffirstconvert]] (http-localhost/127.0.0.1:8080-1) standardwrapper.throwable: java.lang.runtimeexception: java.lang.classnotfoundexception: sip.multimediaconference.multimediaconferenceimpl [module "deployment.conffirstconvert.war:main" service module loader]     @ org.jboss.resteasy.spi.resteasydeployment.registration(resteasydeployment.java:365) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.spi.resteasydeployment.start(resteasydeployment.java:225) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.plugins.server.servlet.servletcontainerdispatcher.init(servletcontainerdispatcher.java:67) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.plugins.server.servlet.httpservletdispatcher.init(httpservletdispatcher.java:36) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1202) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardwrapper.allocate(standardwrapper.java:952) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:188) [jbossweb-7.0.16.final.jar:]     @ org.mobicents.servlet.sip.startup.sipstandardcontextvalve.invoke(sipstandardcontextvalve.java:255)     @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:153) [jboss-as-web-7.1.2.final.jar:7.1.2.final]     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:155) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:368) [jbossweb-7.0.16.final.jar:]     @ org.apache.coyote.http11.http11processor.process(http11processor.java:877) [jbossweb-7.0.16.final.jar:]     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:679) [jbossweb-7.0.16.final.jar:]     @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:931) [jbossweb-7.0.16.final.jar:]     @ java.lang.thread.run(thread.java:724) [rt.jar:1.7.0_25] caused by: java.lang.classnotfoundexception: sip.multimediaconference.multimediaconferenceimpl [module "deployment.conffirstconvert.war:main" service module loader]     @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:190)     @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:468)     @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:456)     @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:398)     @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:120)     @ org.jboss.resteasy.spi.resteasydeployment.registration(resteasydeployment.java:361) [resteasy-jaxrs-2.3.3.final.jar:]     ... 16 more  15:37:56,537 error [org.apache.catalina.core.containerbase.[jboss.web].[default-host].[/conffirstconvert].[sip.multimediaconference.jaxrsactivator]] (http-localhost/127.0.0.1:8080-1) allocate exception servlet sip.multimediaconference.jaxrsactivator: java.lang.classnotfoundexception: sip.multimediaconference.multimediaconferenceimpl [module "deployment.conffirstconvert.war:main" service module loader]     @ org.jboss.modules.moduleclassloader.findclass(moduleclassloader.java:190)     @ org.jboss.modules.concurrentclassloader.performloadclassunchecked(concurrentclassloader.java:468)     @ org.jboss.modules.concurrentclassloader.performloadclasschecked(concurrentclassloader.java:456)     @ org.jboss.modules.concurrentclassloader.performloadclass(concurrentclassloader.java:398)     @ org.jboss.modules.concurrentclassloader.loadclass(concurrentclassloader.java:120)     @ org.jboss.resteasy.spi.resteasydeployment.registration(resteasydeployment.java:361) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.spi.resteasydeployment.start(resteasydeployment.java:225) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.plugins.server.servlet.servletcontainerdispatcher.init(servletcontainerdispatcher.java:67) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.jboss.resteasy.plugins.server.servlet.httpservletdispatcher.init(httpservletdispatcher.java:36) [resteasy-jaxrs-2.3.3.final.jar:]     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1202) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardwrapper.allocate(standardwrapper.java:952) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:188) [jbossweb-7.0.16.final.jar:]     @ org.mobicents.servlet.sip.startup.sipstandardcontextvalve.invoke(sipstandardcontextvalve.java:255)     @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:153) [jboss-as-web-7.1.2.final.jar:7.1.2.final]     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:155) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) [jbossweb-7.0.16.final.jar:]     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:368) [jbossweb-7.0.16.final.jar:]     @ org.apache.coyote.http11.http11processor.process(http11processor.java:877) [jbossweb-7.0.16.final.jar:]     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:679) [jbossweb-7.0.16.final.jar:]     @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:931) [jbossweb-7.0.16.final.jar:]     @ java.lang.thread.run(thread.java:724) [rt.jar:1.7.0_25] 

i don't cause jars, classes available @ correct places. has idea?

thanks help!
g.

the problem appears cause parlayx bundle wasn't in war. scope wrong "provided". correct scope "compile". rest works expected!


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -