3 Replies Latest reply on Oct 31, 2018 3:57 AM by Miroslav Novak

    While posting the message to ibm MQ getting the below runtime error

    aluri chalapathi Newbie

      Hi,

       

      i am trying to post the message to IBM MQ. My stateless message sender bean(jar file) deployed to Wildfly10. while trying to execute my service using client application getting the below error.can any one suggest how to add external jars(com.ibm.mq.allclient-9.0.4.0) to wildfly server.To add external jars i have done like below.Inside wildfly 10 (C:\wildfly-10.0.0.Final\modules\system\layers\base\com\ibm\mq) i have copied my jar and module.xml and in manifest.MF i also have update with Depedencies com.ibm.mq.

       

      Attaching my module.xml file and message sender stateless bean.

       

      The below error i am getting while trying to access the deployed service using client application.

      Caused by: java.lang.NoClassDefFoundError: com/ibm/msg/client/jms/JmsFactoryFactory

      at com.css.upload.communicator.CsssValMessageSender.sendMessage(CsssValMessageSender.java:47)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)