-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Claus,
we tried this but it throws this Exception during creation of the
ActiveMQConnectionFactory:
Caused by: java.lang.NoClassDefFoundError:
org/apache/activemq/management/JMSStatsImpl
at
org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:83)
at
org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:123)
at
org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:119)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.activemq.jndi.JNDIReferenceFactory.getObjectInstance(JNDIReferenceFactory.java:65)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:155)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:88)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:153)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at
org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
at
org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
at
org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:200)
at
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:186)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 44 common frames omitted
I guess there is currently no way to use ActiveMQ in an embedded way
which does not have classloader leaks. It's a pitty, since we only need
the activemq dependency to create a connection factory to a remove
broker. There is no configuration of activemq involved (i guess that
would make it even harder)...
But thanks for your help. If you have any other idea I would be glad to
hear.
Markus
> Hi
>
> Have you tried NOT having camel-core.jar in /lib/ext, but putting all
> the camel jars in the WEB-INF/lib
>
>
> On Tue, Feb 24, 2009 at 2:34 PM, Markus Wolf <[email protected]> wrote:
> Hi,
>
> I try to deploy a camel context using spring inside Tomcat6 with ActiveMQ.
>
> We have the following setup:
> CATALINA_HOME
> /lib/ext/activemq.jar
> /lib/ext/camel-core.jar
> /webapp/ROOT/WEB-INF/lib/camel-jms.jar
> /webapp/ROOT/WEB-INF/lib/camel-spring.jar
> /webapp/ROOT/WEB-INF/lib/spring-and-dependencies.jar
>
> When we start our tomcat we get a ClassNotFoundException for the
> org.apache.camel.component.jms.JmsComponent. And now I'm unsure how to
> deploy the whole thing 'the right way'.
> When we put activemq with camel-core into our webapp we have classloader
> leaks and cannot undeploy our application.
> When we put camel-jms into the lib/ext folder of tomcat we are forced to
> place the whole spring and dependencies there also. That seems wrong to
> me also.
>
> Can anyone give me a hint about the deployment?
> Thanks
> Markus Wolf
>>
- --
NMMN - New Media Markets & Networks GmbH
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona UStID DE 812 699 852 HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82
http://www.nmmn.com Tel.: +49 40 284 118 -0
Langbehnstrasse 6 Entwicklung: -720
22761 Hamburg Fax: -999
Rufen Sie uns kostenlos an: http://www.nmmn.com/call/software
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmj/5MACgkQDBHISU1oEKGMEACdEazF6KXY53jS///qKcj8jw2f
K5YAn2PhmQY19P8BaXkdzHJhLu+q4mo5
=FNUe
-----END PGP SIGNATURE-----