我正在尝试从 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
为什么会这样,如何解决?
经过这么多尝试,我通过将
javax.jms.api
添加到standalone.xml
中的全局模块部分来解决这个错误。它通过 WMQ
设置解决了上述问题。
<global-modules>
<module name="javax.jms.api"/>
</global-modules>
@ Shweta 你的解决方案也对我有用。我也在迁移jboss 从 6.x 到 7.x