You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <ch...@gmail.com> on 2013/10/23 19:59:40 UTC
Spring ASM issue with Camel + CXF
Hi,
Using Spring 3.1.3.RELEASE + Camel 2.12.1 + CXF 2.7.7, I get this exception
java.lang.IncompatibleClassChangeError: class
org.springframework.core.LocalVariableTableParameterNameDiscoverer$ParameterNameDiscoveringVisitor
has interface org.springframework.asm.ClassVisitor as super class
when I run Camel in Tomcat (but I can also reproduce this error when
running locally my camel project so they are not related).
https://gist.github.com/7123359
I have added this exclusion to camel-cxf but that does not help a lot
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
</exclusion>
</exclusions>
</dependency>
but that does not help a lot. Any idea is welcome ?
Regards,
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
Re: Spring ASM issue with Camel + CXF
Posted by Daniel Kulp <dk...@apache.org>.
I’d suggest a “mvn dependency:tree” and see what’s there. It sounds like a mis-match of versions of spring jars. Possibly a 3.2.x version of spring-asm being picked up but a 3.1.x version of core or similar.
Dan
On Oct 23, 2013, at 1:59 PM, Charles Moulliard <ch...@gmail.com> wrote:
> Hi,
>
> Using Spring 3.1.3.RELEASE + Camel 2.12.1 + CXF 2.7.7, I get this exception
>
> java.lang.IncompatibleClassChangeError: class
> org.springframework.core.LocalVariableTableParameterNameDiscoverer$ParameterNameDiscoveringVisitor
> has interface org.springframework.asm.ClassVisitor as super class
>
> when I run Camel in Tomcat (but I can also reproduce this error when
> running locally my camel project so they are not related).
>
> https://gist.github.com/7123359
>
> I have added this exclusion to camel-cxf but that does not help a lot
>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-cxf</artifactId>
> <exclusions>
> <exclusion>
> <groupId>org.springframework</groupId>
> <artifactId>spring-asm</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> but that does not help a lot. Any idea is welcome ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com