How to solve ConversionNotSupportedException from 'com.ibm.mq.connector.outbound.ConnectionFactoryImpl' to required 'javax.jms.ConnectionFactory'

问题描述 投票:0回答:2

我正在尝试从 JBOSS EAP 6.4 迁移到 JBOSS EAP 7.2。

在服务器启动时我得到

BeanCreationException: Error creating bean with name 'A' defined in ServletContext resource Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.ibm.mq.connector.outbound.ConnectionFactoryImpl' to required type 'javax.jms.ConnectionFactory' for property 'queueManager'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.ibm.mq.connector.outbound.ConnectionFactoryImpl] to required type [javax.jms.ConnectionFactory] for property 'queueManager': no matching editors or conversion strategy found

为什么会这样,如何解决?

jboss migration ibm-mq jboss-eap-6 jboss-eap-7
2个回答
2
投票

经过这么多尝试,我通过将

javax.jms.api
添加到
standalone.xml
中的全局模块部分来解决这个错误。它通过
WMQ
设置解决了上述问题。

<global-modules>
    <module name="javax.jms.api"/>
</global-modules>

0
投票

@ Shweta 你的解决方案也对我有用。我也在迁移jboss 从 6.x 到 7.x

© www.soinside.com 2019 - 2024. All rights reserved.