ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

One Star

ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi,
I got this error when running my route, I use apache ActiveMQ:
: org.apache.camel.impl.converter.AnnotationTypeConverterLoader - Ignoring converter type: org.apache.activemq.camel.converter.ActiveMQMessageConverter as a dependent class could not be found: java.lang.NoClassDefFoundError: org/apache/camel/component/jms/JmsBinding
java.lang.NoClassDefFoundError: org/apache/camel/component/jms/JmsBinding
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.loadConverterMethods(AnnotationTypeConverterLoader.java:262)
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:130)
at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:539)
at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:47)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2083)
at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1015)
at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:976)
at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1269)
at org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:249)
at org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:272)
at org.apache.camel.component.cxf.CxfComponent.createEndpoint(CxfComponent.java:84)
at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:517)
at org.apache.camel.builder.BuilderSupport.endpoint(BuilderSupport.java:347)
at com_dfs_falcontab_services.notificationroute_0_3.notificationRoute.getCxfEndpoint(notificationRoute.java:87)
at com_dfs_falcontab_services.notificationroute_0_3.notificationRoute.configure(notificationRoute.java:97)
at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322)
at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:276)
at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:262)
at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:688)
at org.apache.camel.main.MainSupport.postProcessCamelContext(MainSupport.java:467)
at com_dfs_falcontab_services.notificationroute_0_3.notificationRoute$1.postProcessCamelContext(notificationRoute.java:158)
at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:402)
at org.apache.camel.main.Main.doStart(Main.java:108)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
at org.apache.camel.main.MainSupport.run(MainSupport.java:147)
at com_dfs_falcontab_services.notificationroute_0_3.notificationRoute.run(notificationRoute.java:225)
at com_dfs_falcontab_services.notificationroute_0_3.notificationRoute.runJobInTOS(notificationRoute.java:334)
at com_dfs_falcontab_services.notificationroute_0_3.notificationRoute.main(notificationRoute.java:295)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.component.jms.JmsBinding
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

Thanks. 
Employee

Re: ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi,
Have you added camel-jms as a dependency of your route in the Route builder?
BR
One Star

Re: ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi,
I don't know!!
how to check that?
Lachmiter
One Star

Re: ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi
In case you're using pure cMessagingEndpont - then go Avanced component setting and jms camel component
One Star

Re: ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi,
I use a cTalendJob in my route. I use tJmsOutput in the job to post message in activeMQ.
I don't use cMessagingEndpont.
route:
jobSmiley FrustratedendToRecipient

Lachmiter.
One Star

Re: ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi,
Well, it is a warning from Camel during type converter initialization.
Is route works as expected?
One Star

Re: ClassNotFoundException: org.apache.camel.component.jms.JmsBinding

Hi,
Yes it works.