jbossmigrationibm-mqjboss-eap-6jboss-eap-7

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


I am trying JBOSS EAP 6.4 to JBOSS EAP 7.2 migration.

At the server startup I am getting

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

Why this is happening and how to solve it?


Solution

  • After so much trying, I solved this error by adding javax.jms.api to the global-modules section in standalone.xml. It resolves above issue with the WMQ setup.

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