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