jboss 如何解决ConversionNotSupportedException从'com.ibm.mq.connector.outbound.ConnectionFactoryImpl'到必需的'javax.jms.ConnectionFactory'

k5hmc34c  于 2023-04-20  发布在  Java
关注(0)|答案(1)|浏览(167)

我正在尝试从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

为什么会出现这种情况,如何解决?

5n0oy7gb

5n0oy7gb1#

经过多次尝试,我通过将javax.jms.api添加到standalone.xml中的global-modules部分来解决这个错误。它解决了WMQ设置中的上述问题。

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

相关问题