I did solve the problem. It was an API mismatch problem but not only.
I don't know how Karaf (the OSGi container i'm using) works exactly regarding the classloaders but i suspect that placing the tibjms.jar in the lib fodler of Karaf prevents the jar's classes to load the interface from camel-jms and geronimo bundles So basicly i had to include the tibjms.jar inside my bundle application, prevent imports i did'nt need (like com.tibco.security) and import the javax.jms api. Thank you for the leads. Le 13/12/2011 16:57, Pierre HARDY a écrit : > I did the test and running a standalone camel works. I do not have the > error anymore. > > When i'm not providing the JMS API i have a classNotFoundException. Can > it still be a double API missmatch ? > > Do you have ideas or lead to help me fix this problem ? > > Le 09/12/2011 10:38, Pierre HARDY a écrit : >> Actualy i'm providing a jms.jar (version 1.1) but i'm not sure of the >> compliance of ibjms jar, looking inside this jar didn't provide enought >> information but by comparing the API they look like the same. >> >> Christian, as you mention, i'm effectively using an OSGi container >> (Karaf) but i didn't find any javax.jms interface classes and without >> providing the jms jar api the container's classloader couldn't find >> those classes so i'm guessing there is only one jms api but i will give >> a try to run it outside of the container. >> >> >> Le 08/12/2011 18:26, Christian Schneider a écrit : >>> I rather think there might be two different jms apis around. >>> If the tibco impl and your bundle see different jms api classes then >>> this error can happen. >>> >>> You can easily check Babaks assumption by running the same route >>> outside OSGi. If it works outside OSGi than it is rather >>> the double jms api issue. If it does not work then the tibco >>> connection factory may in fact be only jms 1.0.2 compliant. >>> >>> Christian >>> >>> >>> Am 08.12.2011 17:16, schrieb bvahdat: >>>> Hi, >>>> >>>> could it be that the 'com.tibco.tibjms.TibjmsConnectionFactory' class >>>> you've >>>> got on the classpath is just JMS 1.0.2 and not necessarily JMS 1.1 >>>> complaint. Can you please check it, maybe through the Manifest inside >>>> the >>>> jar containing that class? >>>> >>>> From Camel 2.5 onwards the support for the JMS 1.0.2 has been dropt, >>>> see [1] >>>> >>>> [1] http://camel.apache.org/jms >>>> >>>> Babak >>>> >>>> -- >>>> View this message in context: >>>> http://camel.465427.n5.nabble.com/Problem-using-JmsCompoment-with-Tibco-implementation-tp5059096p5059303.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. -- Pierre HARDY Secteur public Sopragroup. 14-16, rue de Vincennes 93100 Montreuil -------------------------------------------------------------- Phone : +33 (0)1 49 88 50 53 pha...@sopragroup.com <mailto:pha...@sopragroup.com> - www.sopragroup.com <http://www.sopragroup.com> Ce message peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite en l'absence d'autorisation explicite de l'émetteur. Dans l'hypothèse où vous auriez reçu par erreur ce message, merci de le renvoyer à l'émetteur et de détruire toute copie. P Pensez à l'environnement avant d'imprimer / Before printing, think about the environment.