1 Reply Latest reply on Dec 23, 2011 9:32 AM by Paul Robinson

    Exception while trying to start a transaction

    antonis b Newbie

      Hi,

       

      I am trying to implement a scenario with 3 web services where one of them starts a transaction and the other two are participating. I am using JBoss 5.1.0. I have read about the xts api and I have deployed the jbossxts.sar (it looks ok from the administration console).

       

      However when I am trying to begin the transaction I get the following exception:

       

      2011-12-07 16:26:33,565 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-127.0.0.1-8080-2) Application {http://travelagent.comp6017.ecs.soton.ac.uk/}TravelAgentService#{http://comp6017.ecs.soton.ac.uk/travelagent/}BookFlight has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: org/oasis_open/docs/ws_tx/wscoor/_2006/_06/ActivationService
                at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
                at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:86)
                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121)
                at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:60)
                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
                at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
                at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
                at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
                at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)
                at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:97)
                at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:461)
                at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:149)
                at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:148)
                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NoClassDefFoundError: org/oasis_open/docs/ws_tx/wscoor/_2006/_06/ActivationService
                at com.arjuna.webservices11.wscoor.client.WSCOORClient.getActivationService(WSCOORClient.java:56)
                at com.arjuna.webservices11.wscoor.client.WSCOORClient.getActivationPort(WSCOORClient.java:77)
                at com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient.sendCreateCoordination(ActivationCoordinatorClient.java:83)
                at com.arjuna.wsc11.ActivationCoordinator.createCoordinationContext(ActivationCoordinator.java:76)
                at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.startTransaction(UserTransactionImple.java:277)
                at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:85)
                at com.arjuna.mwlabs.wst11.at.remote.UserTransactionImple.begin(UserTransactionImple.java:75)
                at uk.ac.soton.ecs.comp6017.travelagent.TravelAgent.bookFlight(TravelAgent.java:228)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
                ... 38 more
      
      

       

      Any ideas?

        • 1. Re: Exception while trying to start a transaction
          Paul Robinson Master

          Hello,

           

          Sorry for the late reply, I somehow managed to miss your message. Do you still have this problem? If so I'll take a look.

           

          In the meen time, you could upgrade to JBossAS 7.1.0CR1, which comes with XTS already deployed. You just need to start it with the command:

           

          sh bin/standalone.sh --server-config=../../docs/examples/configs/standalone-xts.xml

           

          If your problem is due to incorrect installation, then this should fix it.

           

          Let me know if you still need assistence and i'll spend some time understaning what the problem is,

           

          Paul.