Posted: 6 Sep 2016 13:17 EDT Last activity: 2 Mar 2017 14:10 EST
Getting "java.lang.NoClassDefFoundError: Could not initialize class com.ibm.mq.MQEnvironment" error while doing a test connection from MQ server form
I am getting below exception while doing a test connection from "MQ Server" form of PRPC. This application is running on PRPC 7.1.9 and on JBOSS 6.4.6 GA. I have imported the following JAR files in PRPC under "customer" codeset and restarted the server. Even after that I am getting the above error.
Appreciate your help and quick response in resolving this error.
***Updated by moderator: Marissa to update categories***
***Updated by moderator: Marissa to add SR Details***
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.internal.MQCommonServices at com.pega.pegarules.internal.bootstrap.phase2.PRBaseLoader.findClass(PRBaseLoader.java:312)
you can confirm that using SMA>>Advanced>>ETier runtime environment (java class lookup).
Just wondering if you can simply use Connect-JMS (as long as you use ear deployment) since you already have resource adapter deployed, no need to import MQ client jars, which is proven to be chanllenging sometimes. What is your business requirement in particular?
Thanks for your prompt response. Yes, I can confirm SMA that pega is unable to locate this class "com.ibm.mq.internal.MQCommonServices". We have business requirement to send the response message back to the same queue from which request is received. Since there are more than 5 queues, we want to use the reply to feature on "Connect-MQ" rules, which is not available with "Connect-JMS". Please let me know if you want me to raise an SR.
You can use JMS MDB listener, the replyto feature is supported there. I am confused why you would send the message back to the same queue (normally replyto queue is a different queue and picked up by another listener process). Who is processing messages on the queue? Please elaborate your business flows first before opening any SRs.
Thanks for the prompt response. Here is the business requirement. We have MDB listener which listens for incoming messages and PRPC processes those messages and at a later time an acknowledgement will be sent to MQ queues. Here the response needs to be sent is asynchornous and hence we are not using MDB for response. We have 10 queues to send response and we don't want to create 10 Connect-JMS instead we want to leverage the functionality available in Connect-MQ forms to send to any of those queues defined there.
If you are still not clear, we can setup a meeting and disucss more. Please let me know you availability.