web services - Problems using CXF 2.5.2 and JBoss AS 7 -
i'm creating webservice using cxf 2.5.2. runs on tomcat. when immigrate jboss, error occurs below:
14:47:42,721 warn [org.jboss.as.ee] (msc service thread 1-3) jbas011006: not installing optional component org.apache.cxf.transport.ht tp.servlet3continuationprovider$servlet3continuation due exception: org.jboss.as.server.deployment.deploymentunitprocessingexception : jbas011054: not find default constructor class org.apache.cxf.transport.http.servlet3continuationprovider$servlet3continuat ion @ org.jboss.as.ee.component.componentdescription$defaultcomponentconfigurator.configure(componentdescription.java:606) @ org.jboss.as.ee.component.deployers.eemoduleconfigurationprocessor.deploy(eemoduleconfigurationprocessor.java:81) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:113) [jboss-as-server-7.1.0. final.jar:7.1.0.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.2.ga.jar: 1.0.2.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) [rt.jar:1.7.0_03] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) [rt.jar:1.7.0_03] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_03] 14:47:42,756 warn [org.jboss.as.ee] (msc service thread 1-3) jbas011006: not installing optional component org.eclipse.jetty.continuat ion.servlet3continuation$1 due exception: org.jboss.as.server.deployment.deploymentunitprocessingexception: jbas011054: not fi nd default constructor class org.eclipse.jetty.continuation.servlet3continuation$1 @ org.jboss.as.ee.component.componentdescription$defaultcomponentconfigurator.configure(componentdescription.java:606) @ org.jboss.as.ee.component.deployers.eemoduleconfigurationprocessor.deploy(eemoduleconfigurationprocessor.java:81) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:113) [jboss-as-server-7.1.0. final.jar:7.1.0.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.2.ga.jar: 1.0.2.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) [rt.jar:1.7.0_03] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) [rt.jar:1.7.0_03] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_03] 14:47:42,790 warn [org.jboss.as.ee] (msc service thread 1-3) jbas011006: not installing optional component org.eclipse.jetty.continuat ion.servlet3continuation$2 due exception: org.jboss.as.server.deployment.deploymentunitprocessingexception: jbas011054: not fi nd default constructor class org.eclipse.jetty.continuation.servlet3continuation$2 @ org.jboss.as.ee.component.componentdescription$defaultcomponentconfigurator.configure(componentdescription.java:606) @ org.jboss.as.ee.component.deployers.eemoduleconfigurationprocessor.deploy(eemoduleconfigurationprocessor.java:81) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:113) [jboss-as-server-7.1.0. final.jar:7.1.0.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.2.ga.jar: 1.0.2.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) [rt.jar:1.7.0_03] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) [rt.jar:1.7.0_03] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_03] 14:47:42,929 error [org.jboss.msc.service.fail] (msc service thread 1-3) msc00001: failed start service jboss.deployment.unit."pocws -0.0.1-snapshot.war".install: org.jboss.msc.service.startexception in service jboss.deployment.unit."pocws-0.0.1-snapshot.war".install: failed process phase install of deployment "pocws-0.0.1-snapshot.war" @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:119) [jboss-as-server-7.1.0. final.jar:7.1.0.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.2.ga.jar: 1.0.2.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) [rt.jar:1.7.0_03] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) [rt.jar:1.7.0_03] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_03] caused by: javax.persistence.persistenceexception: jbas011466: persistenceprovider 'org.apache.openjpa.persistence.persistenceprovideri mpl' not found @ org.jboss.as.jpa.processor.persistenceunitdeploymentprocessor.lookupprovider(persistenceunitdeploymentprocessor.java:546) @ org.jboss.as.jpa.processor.persistenceunitdeploymentprocessor.addpuservice(persistenceunitdeploymentprocessor.java:279) @ org.jboss.as.jpa.processor.persistenceunitdeploymentprocessor.handlewardeployment(persistenceunitdeploymentprocessor.java:19 4) @ org.jboss.as.jpa.processor.persistenceunitdeploymentprocessor.deploy(persistenceunitdeploymentprocessor.java:118) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:113) [jboss-as-server-7.1.0. final.jar:7.1.0.final] ... 5 more
piece of service code is:
@webservice public interface userservice { @webmethod public void addnewuser( @webparam(name="username") string username, @webparam(name="address") string address, @webparam(name="phonenum") string phonenum);
and configured service using xml like:
<bean id="userservice" class="com.hp.poc.service.userserviceimpl" /> <!-- webservice --> <jaxws:endpoint id="userwsendpoint" implementor="#userservice" address="/userws"> </jaxws:endpoint>
could u please give me help?
check dependencies, if version of jar same jboss lib folders, i.e cxf jars in modules folder of jboss should same declared in pom.xml or in classpath.
also exclude jetty dependencies cxf bundles. i.e:
<dependency> <groupid>org.apache.cxf</groupid> <artifactid>cxf-bundle-jaxrs</artifactid> <version>${cxf.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupid>org.eclipse.jetty</groupid> <artifactid>jetty-server</artifactid> </exclusion> </exclusions> </dependency>
finally left with:
10:27:00,424 warn [org.jboss.as.ee] (msc service thread 1-7) jbas011006: not installing optional component org.apache.cxf.transport.http.servlet3continuationprovider$servlet3continuation due exception: org.jboss.as.server.deployment.deploymentunitprocessingexception: jbas011054: not find default constructor class org.apache.cxf.transport.http.servlet3continuationprovider$servlet3continuation @ org.jboss.as.ee.component.componentdescription$defaultcomponentconfigurator.configure(componentdescription.java:606) @ org.jboss.as.ee.component.deployers.eemoduleconfigurationprocessor.deploy(eemoduleconfigurationprocessor.java:81) @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:113) [jboss-as-server-7.1.1.final.jar:7.1.1.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ java.util.concurrent.threadpoolexecutor$worker.runtask(unknown source) [rt.jar:1.6.0_45] @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) [rt.jar:1.6.0_45] @ java.lang.thread.run(unknown source) [rt.jar:1.6.0_45]
i believe because of default jars comes jboss check:
Comments
Post a Comment