camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10251) Camel-CXF: java.lang.NoClassDefFoundError: org/apache/cxf/common/util/ModCountCopyOnWriteArrayList
Date Wed, 17 Aug 2016 11:46:20 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15424340#comment-15424340
] 

Claus Ibsen commented on CAMEL-10251:
-------------------------------------

Sound like you got some mixed versions on your classpath. That class is in cxf-core 3.1.7

> Camel-CXF: java.lang.NoClassDefFoundError: org/apache/cxf/common/util/ModCountCopyOnWriteArrayList
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-10251
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10251
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.17.3
>            Reporter: Pascal Schumacher
>
> After updating from camel 2.17.2 to 2.17.3 we get:
> {quote}java.lang.NoClassDefFoundError: org/apache/cxf/common/util/ModCountCopyOnWriteArrayList
> 	at org.apache.camel.component.cxf.CxfEndpoint.<init>(CxfEndpoint.java:129)
> 	at org.apache.camel.component.cxf.CxfComponent.createCxfEndpoint(CxfComponent.java:124)
> 	at org.apache.camel.component.cxf.CxfComponent.createEndpoint(CxfComponent.java:98)
> 	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:114)
> 	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:568)
> 	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
> 	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211)
> 	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)
> 	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
> 	at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
> 	at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
> 	at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534)
> 	at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495)
> 	at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
> 	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)
> 	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
> 	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:974)
> 	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3301)
> 	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3024)
> 	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)
> 	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2854)
> 	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2850)
> 	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2873)
> 	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2850)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
> 	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2819)
> 	at org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:545)
> 	at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:335)
> 	at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:239)
> 	at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> Caused by: java.lang.ClassNotFoundException: org.apache.cxf.common.util.ModCountCopyOnWriteArrayList
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> 	... 56 more
> {quote}
> I guess this is caused by the update of the cxf-version. Camel 2.17.2 used CXF 3.1.5
while Camel 2.17.3 uses CXF 3.1.7.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message