1 Reply Latest reply on Jan 19, 2016 7:57 AM by Miroslav Novotný

    Web service client SOAP over JMS on JBoss EAP 6.4.0 using resource adapter IBM MQ 7.0

    Miroslav Novotný Newbie

      Hello boys,

       

       

      I have a problem to make the web service client with transport soap/jms on server JBoss EAP 6.4.0 .

       

       

      I am using:

      - IDE - NetBeans 8.0 as IDE,

      - app server - JBoss EAP 6.4.0

      - resource adapter on IBM MQ 7.0

      - maven web project  is using dependency on:

          - jboss-javaee-web-6.0 v.3.0.2

          - webservices-rt v.1.4

       

       

      I generated the web service client by maven plugin: org.jvnet.jax-ws-commons / jaxws-maven-plugin / version 2.3.

      When I call ws by http protocol it's ok, but the main problem is when i call ws by jms uri:   jms:jndi:java:/jboss/jms/ivt/IVTCF?jndiConnectionFactoryName=MQConnectionFactory

       

       

      Strange exception occurs - ClassNotFoundException: org.springframework.jms.support.destination.DestinationResolver  :

       

       

       

       

      net.atos.sk.commons.core.exceptions.ApplicationException: java.lang.NoClassDefFoundError: org/springframework/jms/support/destination/DestinationResolver

        at org.apache.cxf.transport.jms.JMSTransportFactory.getConduit(JMSTransportFactory.java:78)

        at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:238)

        at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:110)

        at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)

        at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:900)

        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:567)

        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)

        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)

        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)

        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)

        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:136)

        at com.sun.proxy.$Proxy173.getCustomerSignature(Unknown Source)

      ...

      Caused by: java.lang.ClassNotFoundException: org.springframework.jms.support.destination.DestinationResolver from [Module "org.apache.cxf.impl:main" from local module loader @16f65612 (finder: local module finder @311d617d (roots: D:\JBoss\EAP-6.4.0\modules,D:\JBoss\EAP-6.4.0\modules\system\layers\base))]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)

       

       

       

       

      After then I added a dependency on :

       

       

              <dependency>

                  <groupId>org.springframework</groupId>

                  <artifactId>spring-context</artifactId>

                  <version>3.2.3.RELEASE</version>

              </dependency>

              <dependency>

                  <groupId>org.springframework</groupId>

                  <artifactId>spring-jms</artifactId>

                  <version>3.2.3.RELEASE</version>

              </dependency>

       

       

      Problem still occurs. Any idea please ?

       

       

      Thanks

      MiroN