Hi,

Thanks for giving right direction.I went through class loader document on
servicemix site and accordingly i added following class classpath in my
xbean. I am pointing jms jar provided with websphere mq's installation. I
have copied these jars in ext folder under lib.


<location>/apache-servicemix-3.3.2/apache-servicemix-3.3.2/lib/ext/com.ibm.mq.jar</location>
   
<location>/apache-servicemix-3.3.2/apache-servicemix-3.3.2/lib/ext/com.ibm.mqjms.jar</location>
   
<location>/apache-servicemix-3.3.2/apache-servicemix-3.3.2/lib/ext/jms.jar</location>

Here is my provider's configuration:
<jms:provider service="esb:MQProvider" 
                                                        
endpoint="MQProviderEndPoint" 
                                                        
connectionFactory="#mqConnectionFactory"
                                                        
destinationName="FMC.MAESTRO.QUEUE.INFO"
                                                        
                                                        />

Now when i deploy this assembly it gives me following error:
                                <nesting-level>1</nesting-level>
                                <msg-loc-info>
                                        <loc-token/>
                                        <loc-message>Error creating bean
with name 'org.apache.servicemix.jms.endpoints.JmsProviderEndpoint#0'
defined in file [C:\Alok\apa
che-servicemix-3.3.2\apache-servicemix-3.3.2\data\smx\service-assemblies\testjms-sa\version_33\sus\servicemix-jms\testjmsmq-su\xbean.xml]:
Initialization of bean failed; n
ested exception is org.springframework.beans.TypeMismatchException: Failed
to convert property value of type [com.ibm.mq.jms.MQQueueConnectionFactory]
to required type [ja
vax.jms.ConnectionFactory] for property 'connectionFactory'; nested
exception is java.lang.IllegalArgumentException: Cannot convert value of
type [com.ibm.mq.jms.MQQueueCo
nnectionFactory] to required type [javax.jms.ConnectionFactory] for property
'connectionFactory': no matching editors or conversion strategy
found</loc-message>
                                       
<stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.servicemix
.jms.endpoints.JmsProviderEndpoint#0' defined in file
[C:\Alok\apache-servicemix-3.3.2\apache-servicemix-3.3.2\data\smx\service-assemblies\testjms-sa\version_33\sus\servic
emix-jms\testjmsmq-su\xbean.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.TypeMismatchException: Failed to
convert property value of t
ype [com.ibm.mq.jms.MQQueueConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory'; nested
exception is java.lang.IllegalArgumen
tException: Cannot convert value of type
[com.ibm.mq.jms.MQQueueConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory': no matc
hing editors or conversion strategy found

Its not able to convert mqconnectionfactory to type of jms connection
factory. Is there any issue with my xbean configuration?

Thanks in advance



-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/Servicemix-jms-component-with-websphere-MQ-could-not-find-jms-jar-tp2256692p2260053.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to