0 Replies Latest reply on Jun 7, 2014 4:51 PM by Olgun Kaya

    WebService Client Fails on open jdk

    Olgun Kaya Newbie

      hi all,

       

       

      I am trying to get my webservice up and running on my redhad machine. But getting below error.

      Java version on machine is :

      [root@extcomp ~]# java -version

      java version "1.7.0_09-icedtea"

      OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)

      OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)


      Jboss version is : 7.1.3

       

      Error is :

      01:58:00,407 ERROR [org.jboss.ws.common.invocation.InvocationHandlerJAXWS] (http-/192.168.180.144:8080-4) Method invocation failed with exception: null: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09-icedtea]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09-icedtea]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09-icedtea]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09-icedtea]

              at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)

              at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:182)

              at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

              at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_09-icedtea]

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_09-icedtea]

              at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_09-icedtea]

              at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

              at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

              at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

              at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

              at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

              at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

              at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

              at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.4.GA.jar:2.0.4.GA]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.17.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) [jboss-as-web-7.1.3.Final.jar:7.1.3.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372) [jbossweb-7.0.17.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.17.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.17.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.17.Final.jar:]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

      Caused by: java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl

              at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:106) [saaj-impl-1.3.18.jar:]

              at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:70) [saaj-impl-1.3.18.jar:]

              at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:90) [saaj-impl-1.3.18.jar:]

              at com.sun.xml.ws.api.message.saaj.SAAJFactory.readAsSOAPMessage(SAAJFactory.java:232) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.api.message.saaj.SAAJFactory.read(SAAJFactory.java:161) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:197) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:86) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sdp.utils.ws.SecurityHeaderHandler.handleMessage(SecurityHeaderHandler.java:37) [msdp-common-1.0.jar:]

              at com.sdp.utils.ws.SecurityHeaderHandler.handleMessage(SecurityHeaderHandler.java:21) [msdp-common-1.0.jar:]

              at com.sun.xml.ws.handler.HandlerProcessor.callHandleMessage(HandlerProcessor.java:297) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.handler.HandlerProcessor.callHandlersRequest(HandlerProcessor.java:138) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.handler.ClientSOAPHandlerTube.callHandlersOnRequest(ClientSOAPHandlerTube.java:140) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.handler.HandlerTube.processRequest(HandlerTube.java:127) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:961) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:910) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:873) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:775) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.client.Stub.process(Stub.java:429) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:168) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102) [jaxws-rt-2.2.6.jar:2.2.6]

              at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:151) [jaxws-rt-2.2.6.jar:2.2.6]

              at $Proxy357.getService(Unknown Source) at com.ericsson.jawwal.msdp.ca.utils.LocalMCIUtils.getServiceSubDistributionList(LocalMCIUtils.java:91) [classes:]

              at com.ericsson.jawwal.msdp.ca.LocalMCIService.getDistributionList(LocalMCIService.java:100) [classes:]

              ... 38 more

       

      When I try to run the same app on my windows there is no problem. The only thing is that my windows running with oracle jdk where remote machine is with open jdk.

      Local Machine java version is

      c:\workspace\Jawwal-MSDP-CA\local-mci>java -version

      java version "1.7.0_51"

      Java(TM) SE Runtime Environment (build 1.7.0_51-b13)

      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

       

       

      Let me give the process flow as well.

       

      1. Enduser calls my app's web service created by wsimport from wsdl.

      2. My application calls another web service (client created by wsconsume) as soon as it receives a request from end user.

       

       

       

      Edit : I have fetched the jdk rt.jar and checked in it. As expected, the SOAPDocumentImpl is in a different package. So simply I need to use saaj-impl.jar but can not make it to activate. Please help me how can I do that ?