Topic
  • 2 replies
  • Latest Post - ‏2017-11-15T17:23:06Z by MGamboa
Pradeepthi
Pradeepthi
1 Post

Pinned topic com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded.

‏2017-06-22T19:51:57Z | 'com.ibm.msg.client.wmq' be com.ibm.msg.client.jms.detailedjmsexception: connection could factory for jmscc0091: loaded not provider the type

Am getting below error while trying to create a connection to IBM MQ using JMS.

 

        ... 46 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.Connection]: Factory method 'connection' threw exception; nested exception is com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
        ... 59 more
Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319)
        at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:233)
        at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:109)
        at com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl.getInstance(JmsFactoryFactoryImpl.java:172)
        at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.setProviderFactory(JmsConnectionFactoryImpl.java:168)
        at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createConnection(JmsConnectionFactoryImpl.java:255)
        at com.ibm.mq.jms.MQConnectionFactory.createCommonConnection(MQConnectionFactory.java:6233)
        at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:149)
        at com.ibm.mq.jms.MQQueueConnectionFactory.createConnection(MQQueueConnectionFactory.java:228)
        at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.doCreateConnection(UserCredentialsConnectionFactoryAdapter.java:178)
        at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.createConnection(UserCredentialsConnectionFactoryAdapter.java:152)
        at com.walmart.move.nim.validationservices.core.config.AppConfig.connection(AppConfig.java:134)
        at com.walmart.move.nim.validationservices.core.config.AppConfig$$EnhancerBySpringCGLIB$$1ad6fffd.CGLIB$connection$6(<generated>)
        at com.walmart.move.nim.validationservices.core.config.AppConfig$$EnhancerBySpringCGLIB$$1ad6fffd$$FastClassBySpringCGLIB$$81e7d9f4.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
        at com.walmart.move.nim.validationservices.core.config.AppConfig$$EnhancerBySpringCGLIB$$1ad6fffd.connection(<generated>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
        ... 60 more
Caused by: com.ibm.msg.client.commonservices.CSIException: A Messaging Provider component was not found.
        at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.getComponent(ComponentManager.java:450)
        at com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl.getInstance(JmsFactoryFactoryImpl.java:156)
        ... 78 more

 

 

 

Below is the dependency list in my pom:

        <!--  IBM MQ dependency -->
        <dependency>
            <groupId>com.ibm.mq</groupId>
            <artifactId>com.ibm.mq.headers</artifactId>
            <version>7.5.0.3</version>
        </dependency>
        <dependency>
            <groupId>com.ibm.mq</groupId>
            <artifactId>com.ibm.mq.jmqi</artifactId>
            <version>7.5.0.3</version>
        </dependency>
        <dependency>
            <groupId>com.ibm.mq</groupId>
            <artifactId>com.ibm.mqjms</artifactId>
            <version>7.5.0.3</version>
        </dependency>
        <dependency>
            <groupId>javax.resource</groupId>
            <artifactId>connector-api</artifactId>
            <version>1.5</version>
        </dependency>
        <dependency>
    <groupId>com.ibm.mq</groupId>
    <artifactId>com.ibm.mq</artifactId>
    <version>7.5.0.3</version>
</dependency>
    <dependency>
        <groupId>com.ibm</groupId>
        <artifactId>com.ibm.disthub2.dhbcore</artifactId>
        <version>7.5.0.2</version>
    </dependency>
    <dependency>
  <groupId>com.ibm.mq</groupId>
  <artifactId>com.ibm.mq.pcf</artifactId>
  <version>7.5.0.3</version>
</dependency>

 

 

Could you please help me in resolving this issue

  • fjb_saper
    fjb_saper
    240 Posts

    Re: com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded.

    ‏2017-07-05T20:50:19Z  

    Looks like you're missing a jar file on your classpath.

    Make sure you have all the jar files from the mq install path Java on your classpath ....

  • MGamboa
    MGamboa
    1 Post

    Re: com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded.

    ‏2017-11-15T17:23:06Z  

    Is there a resolution to this issue?  I have build an executable jar where required libraries are extracted into jar.  I can see the extracted packages and class files for com.ibm.msg.client.wmq as well as other required libraries however I am still seeing the "com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded." caused by "com.ibm.msg.client.commonservices.CSIException: A Messaging Provider component was not found."

     

    Thanks,