2 Replies Latest reply on Sep 28, 2012 8:39 PM by Magesh Bojan

    CXF and CXFRS incompatibility

    Magesh Bojan Master

      I noticed as part of this JIRA work https://issues.jboss.org/browse/SWITCHYARD-945, the CXFRS library has been upgraded to 2.6.1. Is there any reason for doing so? This breaks in AS7

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."switchyard-quickstart-camel-rest-binding.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deploym
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_30]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_30]
              at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_30]
      Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/staxutils/DepthExceededStaxException
              at org.apache.cxf.jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:76)
              at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.setupFactory(AbstractJAXRSFactoryBean.java:314)
              at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:163)
              at org.apache.camel.component.cxf.jaxrs.CxfRsConsumer.<init>(CxfRsConsumer.java:38)
              at org.apache.camel.component.cxf.jaxrs.CxfRsEndpoint.createConsumer(CxfRsEndpoint.java:111)
              at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
              at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
              at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)
              at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1941)
              at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1869)
              at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1891)
              at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1773)
              at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:714)
              at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1749)
              at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:656)
              at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:661)
              at org.switchyard.component.camel.InboundHandler.<init>(InboundHandler.java:91)
              at org.switchyard.component.camel.deploy.CamelActivator.activateBinding(CamelActivator.java:132)
              at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:482)
              at org.switchyard.deploy.internal.Deployment.start(Deployment.java:147)
              at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:106)
              at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              ... 3 more
      Caused by: java.lang.ClassNotFoundException: org.apache.cxf.staxutils.DepthExceededStaxException from [Module "org.apache.cxf.jaxrs:main" from local module loader @105d88a (roots: /home/switchyard-as7-0.6/modules)]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
              ... 27 more
      
      

       

      The version used in AS 7.1.1.Final is 2.4.6