One Star

javax.jms.JMSContext not found when Route + Tibco EMS

Dear all, 
I'm trying Talend ESB 6.3 route with Tibco EMS 8.3, just a very simple sample, receiver message then log it, 
and customer connection factory by: 


but when deploy it to ESB Runtime, got the exception: 
Caused by: java.lang.ClassNotFoundException: javax.jms.JMSContext cannot be found by commonwebservice.Emsmr_0.2.0
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:389)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 21 more
tried place the jms-2.0.jar/tibjms.jar in lib/ext, but still don't work. 
anyone can save me? 
2 REPLIES
One Star

Re: javax.jms.JMSContext not found when Route + Tibco EMS

customer connection code: 
com.tibco.tibjms.TibjmsConnectionFactory factory = new com.tibco.tibjms.TibjmsConnectionFactory();
factory.setServerUrl(context.emsUrl);
factory.setUserName(context.emsUserName);

if(context.emsPasswd !=null) {
factory.setUserPassword(context.emsPasswd);
}

jmsConnectionFactory = factory;
One Star

Re: javax.jms.JMSContext not found when Route + Tibco EMS

Hi armenpoon, have you solved the problem ?; I had to deal with a similar one and finaly got solved using the camel-sjms instead of camel-jms; I did install first the geronimo-jms_2.0 bundle within karaf, and just then activate the camel-sjms feature. ( tos-6.2.1 ).
Don't hesitate to ask me for help.
Esteban.