Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-582

org.jboss.modules.ModuleNotFoundException: org.jboss.ws.saaj-impl:main

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Final
    • Fix Version/s: 2016.10.0
    • Component/s: None
    • Labels:
      None

      Description

      Hi,

      I have an EJB invoking an external soap webservice. When the external webservice is called, i get an exception:

      Caused by: org.apache.cxf.binding.soap.SoapFault: Problem writing SAAJ model to stream: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException
              at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor.handleMessage(SAAJOutInterceptor.java:140)
              at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:120)
              at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:71)
              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
              at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
              at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
              at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
              ... 188 more
      Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException
              at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:112)
              at org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)
              at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor.getFactory(SAAJOutInterceptor.java:87)
              at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor.handleMessage(SAAJOutInterceptor.java:123)
      

      Inspecting the cause with the debugger, I can see that the actual cause is
      org.jboss.modules.ModuleNotFoundException: org.jboss.ws.saaj-impl:main

      In my pom i only have those dependencies:

      		<dependency>
      			<groupId>org.wildfly.swarm</groupId>
      			<artifactId>ejb</artifactId>
      		</dependency>
      		<dependency>
      			<groupId>org.wildfly.swarm</groupId>
      			<artifactId>jpa</artifactId>
      		</dependency>
      		<dependency>
      			<groupId>org.wildfly.swarm</groupId>
      			<artifactId>webservices</artifactId>
      		</dependency>
      

      Do I need to add something to my pom?

      I'm not sure how I can help you guys reproduce the issue since the webservice is not public.

      Thanks !

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kenfinni Ken Finnigan
                  Reporter:
                  JeremiePanzer Jeremie Panzer
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: