How to avoid ActiveMQ rar and webapp jar collision

View: New views
3 Messages — Rating Filter:   Alert me  

How to avoid ActiveMQ rar and webapp jar collision

by au.pg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I integrate activemq as JCA adaptor as mentioned I see below error -
2009-11-05 12:07:38,671 [main] WARN  org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver () - Ignoring namespace handler [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler]: problem with handler class file or dependent class
java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/NamespaceHandler
        at java.lang.ClassLoader.defineClass1(Native Method)

and existing webapp stops working.

How do I resolve this. I found a thread but seems there wasn't conclusion.

Thanks,
PG

Re: How to avoid ActiveMQ rar and webapp jar collision

by Gary Tully :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried 5.3.0. The 5.3.0 rar now contains the spring-xbean
2.5.6 dependency. If you are on an earlier version, manually update
the RAR to add the xbean-spring.jar to the root of the rar.

2009/11/5 au.pg <pgovind@...>:

>
> When I integrate activemq as JCA adaptor as mentioned I see below error -
> 2009-11-05 12:07:38,671 [main] WARN
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver () -
> Ignoring namespace handler
> [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler]: problem with
> handler class file or dependent class
> java.lang.NoClassDefFoundError:
> org/springframework/beans/factory/xml/NamespaceHandler
>        at java.lang.ClassLoader.defineClass1(Native Method)
>
> and existing webapp stops working.
>
> How do I resolve this. I found a thread but seems there wasn't conclusion.
>
> Thanks,
> PG
> --
> View this message in context: http://old.nabble.com/How-to-avoid-ActiveMQ-rar-and-webapp-jar-collision-tp26222162p26222162.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



--
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Re: How to avoid ActiveMQ rar and webapp jar collision

by au.pg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes. I am on 5.3 and I have xbean spring jar.
I got around the classloader isolation by deploying rar as ear.

PG