Reputation: 29
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XMqJmsTemplate' defined in class path resource [applicationContext-XMq.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.ibm.mq.jms.MQQueueConnectionFactory' to required type 'javax.jms.ConnectionFactory' for property 'connectionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.ibm.mq.jms.MQQueueConnectionFactory] to required type [javax.jms.ConnectionFactory] for property 'connectionFactory': no matching editors or conversion strategy found.
My pom.xml
has only spring-jms3.2.14.RELEASE
, so no chance of conflicts.
Not able to solve this issue when deploying to Tomcat 8.0V.
Is there any jar which can resolve the conversion issue?
Upvotes: 2
Views: 3772
Reputation: 1189
I fixed this issue by using the Maven Dependency listed below:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
<version>SPRING-JMS-VERSION</version>
</dependency>
<dependency>
<groupId>com.ibm.mq</groupId>
<artifactId>com.ibm.mq.allclient</artifactId>
<version>VERSION</version>
</dependency>
Upvotes: 1