Hi, i already have worked with servicemix-jms and websphere mq 5.4. As Freeman said, it is an issue related to jms spec version due to mq 5.3 is jms version 1.0.2 compliant. In order to make it work you use jms spec version 1.0.2b. This last is not available at maven repositories so you must download it from SUN's site and install it in your repository by yourself. Regards
2010/7/29 Freeman Fang <[email protected]>: > Hi, > > This java.lang.NoClassDefFoundError generally means your SA/SU has different > jms spec version dependency with that used by SMX, smx3.3.2 use > geronimo-jms_1.1_spec-1.1.1.jar. Probably use self-first delegate mode can > resolve this problem, take a look at [1] to get more details about how > classloader works in SMX. > > [1]http://servicemix.apache.org/classloaders.html > > Freeman > On 2010-7-29, at 上午12:13, snehal surti wrote: > >> >> Hi, >> >> I am trying to create jms provider to pass xml messages to Websphere >> mq(version5.3). I have following provider configurations in my xbean.xml >> >> <jms:endpoint service="esb:MQProvider" >> endpoint="MQProviderEndPoint" >> >> connectionFactory="#mqConnectionFactory" >> role="provider" /> >> >> I have following dependencies in my pom.xml declared >> >> <dependency> >> <groupId>com.ibm.mq.connector</groupId> >> <artifactId>connector</artifactId> >> <version>5.3</version> >> <type>jar</type> >> >> </dependency> >> <dependency> >> <groupId>com.ibm.mqjms</groupId> >> <artifactId>com.ibm.mqjms</artifactId> >> <version>5.3</version> >> <type>jar</type> >> >> </dependency> >> <dependency> >> <groupId>com.ibm.mq</groupId> >> <artifactId>com.ibm.mq</artifactId> >> <version>5.3</version> >> <type>jar</type> >> >> </dependency> >> >> When it builds service assembly it complaints following: >> Bean 'mqConnectionFactory'; nested exception is >> java.lang.NoClassDefFoundError: javax/jms/QueueConnectionFactory >> >> I have tried to keep jms.jar in smx/lib/optional too but it result into >> same >> error. I tried to deploy it on smx3.2.3 and it successfully deployed on >> it. >> Is there someone else faced this issue with smx3.3.2? >> >> >> >> >> -- >> View this message in context: >> http://servicemix.396122.n5.nabble.com/Servicemix-jms-component-with-websphere-MQ-could-not-find-jms-jar-tp2256692p2256692.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > > > -- > Freeman Fang > > ------------------------ > Open Source SOA: http://fusesource.com > Apache Servicemix:http://servicemix.apache.org > Apache Cxf: http://cxf.apache.org > Apache Karaf: http://karaf.apache.org > Apache Felix: http://felix.apache.org > > -- Matias Urbieta GPI Argentina SA - www.gpi.com.ar Calle 53 N 366 - Piso 9 / La Plata - Buenos Aires - Argentina Teléfono (+54) 221 4275781
