JBoss Community

Module Dependency problem

created by Amos Feng in JBoss Web Services - View the full discussion

I managed to using arquillian to run xts crash recovery tests. I meet the problem with:

22:05:53,022 ERROR [stderr] (Thread-66) org.jboss.jbossts.xts.servicetests.test.at.SingleParticipantPrepareAndCommitTest : txbegin failure com.arjuna.wst.SystemException: javax.xml.ws.WebServiceException: Provider com.sun.xml.internal.ws.spi.ProviderImpl not found

It looks like a module dependency issue.

so I added dependency like:

Dependencies: org.jboss.xts, org.jboss.ws.cxf.jbossws-cxf-client services export

and now the error are:

22:26:28,803 ERROR [stderr] (Thread-72) Exception in thread "Thread-72" java.lang.LinkageError: ClassCastException: attempting to castjar:file:/home/zhfeng/tools/jboss-as-7.0.2.Final/modules/javax/xml/ws/api/main/jboss-jaxws-api_2.2_spec-2.0.0.Final.jar!/javax/xml/ws/spi/Provider.classtojar:file:/opt/jdk1.6.0_27/jre/lib/rt.jar!/javax/xml/ws/spi/Provider.class

22:26:28,803 ERROR [stderr] (Thread-72)     at javax.xml.ws.spi.Provider.provider(Provider.java:94)

22:26:28,804 ERROR [stderr] (Thread-72)     at javax.xml.ws.Service.<init>(Service.java:56)

22:26:28,804 ERROR [stderr] (Thread-72)     at org.oasis_open.docs.ws_tx.wscoor._2006._06.ActivationService.<init>(ActivationService.java:46)

22:26:28,804 ERROR [stderr] (Thread-72)     at com.arjuna.webservices11.wscoor.client.WSCOORClient.getActivationService(WSCOORClient.java:44)

22:26:28,805 ERROR [stderr] (Thread-72)     at com.arjuna.webservices11.wscoor.client.WSCOORClient.getActivationPort(WSCOORClient.java:65)

22:26:28,805 ERROR [stderr] (Thread-72)     at com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient.sendCreateCoordination(ActivationCoordinatorClient.java:82)

22:26:28,806 ERROR [stderr] (Thread-72)     at com.arjuna.wsc11.ActivationCoordinator.createCoordinationContext(ActivationCoordinator.java:77)

22:26:28,806 ERROR [stderr] (Thread-72)     at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.startTransaction(UserTransactionImple.java:289)

22:26:28,807 ERROR [stderr] (Thread-72)     at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:80)

22:26:28,807 ERROR [stderr] (Thread-72)     at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:70)

22:26:28,807 ERROR [stderr] (Thread-72)     at org.jboss.jbossts.xts.servicetests.test.at.SingleParticipantPrepareAndCommitTest.run(SingleParticipantPrepareAndCommitTest.java:68)

22:26:28,808 ERROR [stderr] (Thread-72)     at org.jboss.jbossts.xts.servicetests.ejb.XTSServiceTestRunnerEJBImpl$1.run(XTSServiceTestRunnerEJBImpl.java:70)

 

any idea about these error?

Thanks a lot,

 

Amos

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community