0 Replies Latest reply on Mar 17, 2014 9:05 AM by Lasitha Gunawardena

    JBoss 7 + JAX-WS client issue

    Lasitha Gunawardena Newbie

      Hi Team,

       

      I have to connect with a JAX-WS web service (That is in same jboss server for now) inside my web project.The JAX-WS client works fine when i run it as standalone.But when it deploy with the web project to JBOSS server, the me call gives me a null pointer exception.I really cannot track the issue with the stack trace.It's less detail.

       

      I suspect this is an issue of cxf.(I dont need to use cxf but it's default in jboss).So i have included jboss-deployment-structure.xml as follow inside my WAR file.But that did not work.Following is the stacktrace i am getting.

       

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5) java.lang.NullPointerException

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at com.xxxxx.pulsar.adaptors.PulsarServiceAdaptor.init(PulsarServiceAdaptor.java:29)

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at com.xxxxx.pulsar.web.ContextListener.init(ContextListener.java:41)

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at com.xxxxx.pulsar.web.ContextListener.contextInitialized(ContextListener.java:28)

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)

      18:24:05,507 ERROR [stderr] (MSC service thread 1-5)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      18:24:05,508 ERROR [stderr] (MSC service thread 1-5)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      18:24:05,508 ERROR [stderr] (MSC service thread 1-5)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      18:24:05,508 ERROR [stderr] (MSC service thread 1-5)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      18:24:05,508 ERROR [stderr] (MSC service thread 1-5)     at java.lang.Thread.run(Thread.java:724)18:24:05,508 INFO  [stdout] (MSC service thread 1-5) 2014-03-17 18:24:05 FATAL ContextListener:44 - java.lang.NullPointerException.

       

      Really appreciate a quick response.

       

      Many Thanks