Error While doing test connectivity for MQ Server
Hello All,
We have configured one MQ server with required details and doing the test connectivity. But getting below error:
Failed to compile generated Java com.pegarules.generated.activity.ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c: ----------
1. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 392)
com.ibm.mq.MQEnvironment.properties.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_BINDINGS);
^^^^^^^^^^
com.ibm.mq cannot be resolved
----------
2. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 392)
com.ibm.mq.MQEnvironment.properties.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_BINDINGS);
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
3. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 392)
com.ibm.mq.MQEnvironment.properties.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_BINDINGS);
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
Hello All,
We have configured one MQ server with required details and doing the test connectivity. But getting below error:
Failed to compile generated Java com.pegarules.generated.activity.ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c: ----------
1. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 392)
com.ibm.mq.MQEnvironment.properties.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_BINDINGS);
^^^^^^^^^^
com.ibm.mq cannot be resolved
----------
2. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 392)
com.ibm.mq.MQEnvironment.properties.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_BINDINGS);
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
3. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 392)
com.ibm.mq.MQEnvironment.properties.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_BINDINGS);
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
4. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 393)
com.ibm.mq.MQEnvironment.userID = username;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
5. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 394)
com.ibm.mq.MQEnvironment.password = password;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
6. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 398)
com.ibm.mq.MQEnvironment.hostname = hostName;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
7. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 399)
com.ibm.mq.MQEnvironment.channel = channel;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
8. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 400)
com.ibm.mq.MQEnvironment.port = port;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
9. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 401)
com.ibm.mq.MQEnvironment.userID = username;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
10. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 402)
com.ibm.mq.MQEnvironment.password = password;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a variable
----------
11. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 404)
com.ibm.mq.MQQueueManager qMgr = null;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a type
----------
12. ERROR in /com/pegarules/generated/activity/ra_action_validateinfrastructuremq_a4456390d5ac62291bddd3f19a033d1c.java (at line 411)
qMgr = new com.ibm.mq.MQQueueManager("");
^^^^^^^^^^
com.ibm.mq cannot be resolved to a type
----------
12 problems (12 errors)
Compile failed.
When I checked in PDN it is asking about below jar files to be installed:
com.ibm.mq.jmqi.jar
com.ibm.mq.jar
com.ibm.mq.pcf.jar
com.ibm.mq.headers.jar
com.ibm.mq.commonservices.jar
connector.jar
We are using Websphere and by default in the classloader path these jars are already installed.
4 - Extension - com.ibm.ws.bootstrap.ExtClassLoader
file:/opt/websphere/85/appserver/installedConnectors/wmq.jmsra.rar/com.ibm.mq.commonservices.jar
file:/**/websphere/***/appserver/installedConnectors/wmq.jmsra.rar/com.ibm.mq.connector.jar
file:/**/websphere/***/appserver/installedConnectors/wmq.jmsra.rar/com.ibm.mq.headers.jar
file:/**/websphere/***/appserver/installedConnectors/wmq.jmsra.rar/com.ibm.mq.jar
file:/**/websphere/***/appserver/installedConnectors/wmq.jmsra.rar/com.ibm.mq.jmqi.jar
file:/**/websphere/***/appserver/installedConnectors/wmq.jmsra.rar/com.ibm.mq.pcf.jar
So, do we have to install these jars any other shared path.
Thanks
Saikat