Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2908

ClassNotFoundException: javax.jws.WebService from Module org.apache.camel.cxf:main

    Details

      Description

      It occurs when serviceClass is specified for camel-cxf reference binding. javax.jws.api should be added into org.apache.camel.cxf/module.xml

      Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService
      	at org.apache.camel.component.cxf.CxfEndpointUtils.hasWebServiceAnnotation(CxfEndpointUtils.java:88) [camel-cxf-2.15.2.jar:2.15.2]
      	at org.apache.camel.component.cxf.CxfEndpoint.createClientFactoryBean(CxfEndpoint.java:379) [camel-cxf-2.15.2.jar:2.15.2]
      	at org.apache.camel.component.cxf.CxfEndpoint.createClient(CxfEndpoint.java:618) [camel-cxf-2.15.2.jar:2.15.2]
      	at org.apache.camel.component.cxf.CxfProducer.doStart(CxfProducer.java:76) [camel-cxf-2.15.2.jar:2.15.2]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2869) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1097) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1058) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:405) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:220) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:201) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:128) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115) [camel-core-2.15.2.jar:2.15.2]
      	at org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:297) [camel-core-2.15.2.jar:2.15.2]
      	at org.switchyard.component.camel.common.handler.OutboundHandler.handleInOut(OutboundHandler.java:174) [switchyard-component-common-camel-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
      	at org.switchyard.component.camel.common.handler.OutboundHandler.handleMessage(OutboundHandler.java:147) [switchyard-component-common-camel-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
      	at org.switchyard.handlers.ProviderHandler.handleMessage(ProviderHandler.java:77) [switchyard-runtime-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
      	at org.switchyard.bus.camel.processors.HandlerProcessor.process(HandlerProcessor.java:61) [switchyard-bus-camel-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
      	at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63) [camel-core-2.15.2.jar:2.15.2]
      	... 114 more
      Caused by: java.lang.ClassNotFoundException: javax.jws.WebService from [Module "org.apache.camel.cxf:main" from local module loader @1e7c7811 (finder: local module finder @77ec78b9 (roots: /home/JBossEAP/SY-2.1/modules,/home/JBossEAP/SY-2.1/modules/system/layers/soa,/home/JBossEAP/SY-2.1/modules/system/layers/bpms,/home/JBossEAP/SY-2.1/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.7.Final-redhat-1]
      	... 134 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  igarashitm tomohisa igarashi
                  Reporter:
                  igarashitm tomohisa igarashi
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: