java.lang.ClassNotFoundException with Camel JMS Component FUSE ESB 4.0.0.3
rrojas-chariot Feb 17, 2009 2:37 PMHi There,
I'm trying get a simple route from a file to a queue using the Camel JMS component and I'm getting the exception below.
Here is the sample route:
<camel:camelContext>
<camel:route>
<camel:from uri="file:data-in" />
<camel:to uri="activemq:queue:data-queue"/>
</camel:route>
</camel:camelContext>
<camel:camelContext>
<bean id="activemq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<springdm-osgi:reference interface="javax.jms.ConnectionFactory" timeout="5000" />
</property>
</bean>
I added the org.springframework.core package in the Import section of the maven-bundle-plugin and it didn't help much.
The headers of the bundle show the package is being requested for import, but for some reason the class is not being found.
Import-Package = javax.jms;version="1.1",org.apache.camel;version="1.5.1.fuse",org.apache.camel.component.jms;version="1.5.1.fuse",org.apache.camel.component.velocity;version="1.5.1.fuse",org.apache.camel.osgi,org.apache.commons.logging,org.springframework.beans.factory.config;version="2.5",org.springframework.core;version="2.5"
Any help would be greatly appreciated.
Here is the exception:
java.lang.NoClassDefFoundError: org/springframework/core/NamedThreadLocal
at org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:251)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:458)
at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:548)
at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:227)
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:173)
at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:94)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
Thanks in advance,
Roberto