8 Replies Latest reply on Jun 2, 2016 8:03 AM by khalil_sharkawi

    How to use jBoss Narayana for xts (Transnational WebService )

    khalil_sharkawi

      Hello every body ,I'm working on jBoss Narayana product with wildfly 10 AS .

      i try to run "An Evening On the Town" example which exist in narayana-quickstarts-all / xts-demo-

       

       

      webservice which has some webservices with transactional process between them.

      The problem is when i deploy the project it fails and throw a NullPointerException

      i tryed to trace the exception but no result.

      i'm working on Netbeans 8.1 on Windows 8

      Wildfly 10 on standalone-xts configuration

       

      this is AS log on Exception :

       

       

      19:58:28,908 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 99) MSC000001: Failed

       

       

      to start service jboss.undertow.deployment.default-server.default-host."/xts-demo-webservices-

       

       

      5.3.2.Final-SNAPSHOT": org.jboss.msc.service.StartException in service

       

       

      jboss.undertow.deployment.default-server.default-host."/xts-demo-webservices-5.3.2.Final-SNAPSHOT":

       

       

      java.lang.RuntimeException: java.lang.NullPointerException

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run

       

       

      (UndertowDeploymentService.java:85)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

        at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: java.lang.RuntimeException: java.lang.NullPointerException

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext

       

       

      (UndertowDeploymentService.java:100)

        at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run

       

       

      (UndertowDeploymentService.java:82)

        ... 6 more

      Caused by: java.lang.NullPointerException

        at com.jboss.jbosstm.xts.demo.services.recovery.DemoATRecoveryModule.register

       

       

      (DemoATRecoveryModule.java:42)

        at com.jboss.jbosstm.xts.demo.services.recovery.DemoATRecoveryListener.contextInitialized

       

       

      (DemoATRecoveryListener.java:15)

        at io.undertow.servlet.core.ApplicationListeners.contextInitialized

       

       

      (ApplicationListeners.java:187)

        at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198)

        ... 8 more

       

       

      19:58:28,912 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2)

       

       

      WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description:

       

       

      {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host.\"/xts-

       

       

      demo-webservices-5.3.2.Final-SNAPSHOT\"" => "org.jboss.msc.service.StartException in service

       

       

      jboss.undertow.deployment.default-server.default-host.\"/xts-demo-webservices-5.3.2.Final-SNAPSHOT

       

       

      \": java.lang.RuntimeException: java.lang.NullPointerException

          Caused by: java.lang.RuntimeException: java.lang.NullPointerException

          Caused by: java.lang.NullPointerException"}}

      19:58:28,963 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced

       

       

      deployment "xts-demo-webservices-5.3.2.Final-SNAPSHOT.war" with deployment "xts-demo-webservices-

       

       

      5.3.2.Final-SNAPSHOT.war"

      19:58:28,963 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service

       

       

      status report

      WFLYCTL0186:   Services which failed to start:      service jboss.undertow.deployment.default-

       

       

      server.default-host."/xts-demo-webservices-5.3.2.Final-SNAPSHOT":

       

       

      org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-

       

       

      host."/xts-demo-webservices-5.3.2.Final-SNAPSHOT": java.lang.RuntimeException:

       

       

      java.lang.NullPointerException

            service jboss.undertow.deployment.default-server.default-host."/xts-demo-webservices-

       

       

      5.3.2.Final-SNAPSHOT"