Tuesday, June 7, 2011

MQ Transport could not be registered due to : Missing MQ Library

you must copy
com.ibm.mq.jar
to C:\Oracle\Middleware\user_projects\domains\soadev\lib, restart the server and the message should go away.

Only at this point you will be able to create MQ-related components.

If you get this:

07-Jun-2011 09:07:10 o'clock CEST Error Deployer BEA-149205 Failed to initialize the application 'MQ Transport Provider' due to error java.lang.ClassNotFoundException: com.ibm.mq.jmqi.JmqiObject.
java.lang.ClassNotFoundException: com.ibm.mq.jmqi.JmqiObject
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: com.ibm.mq.jmqi.JmqiObject
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see log file for complete stacktrace



or this


07-Jun-2011 13:27:50 o'clock CEST Error OSB Kernel BEA-380003 Exception on TransportManagerImpl.sendMessageAsync: Error, java.lang.NoClassDefFoundError: Could not initialize class com.ibm.mq.internal.MQCommonServices
java.lang.NoClassDefFoundError: Could not initialize class com.ibm.mq.internal.MQCommonServices
at com.ibm.mq.MQSESSION.getJmqiEnv(MQSESSION.java:134)



or this

07-Jun-2011 11:28:09 o'clock CEST Error WliSbTransports BEA-381913 Error occured while polling the resource for Endpoint: ProxyService$default$PVMQProxy. Polling will be stopped.
java.lang.NoClassDefFoundError: com/ibm/mq/headers/internal/trace/Names
at com.ibm.mq.internal.MQCommonServices.clinit(MQCommonServices.java:241)
at com.ibm.mq.MQSESSION.getJmqiEnv(MQSESSION.java:134)
at com.ibm.mq.MQQueueManagerFactory.init(MQQueueManagerFactory.java:85
)
at com.ibm.mq.MQQueueManagerFactory.getInstance(MQQueueManagerFactory.ja
va:112)
at com.ibm.mq.MQQueueManager.clinit(MQQueueManager.java:153)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: com.ibm.mq.headers.internal.trace.N
ames
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see log file for complete stacktrace



or this

07-Jun-2011 10:11:08 o'clock CEST Error WliSbTransports BEA-381913 Error occured while polling the resource for Endpoint: ProxyService$default$PVMQProxy. Polling will be stopped.
java.lang.NoClassDefFoundError: com/ibm/mq/commonservices/CommonServicesException
at com.ibm.mq.internal.MQCommonServices.clinit(MQCommonServices.java:236)
at com.ibm.mq.MQSESSION.getJmqiEnv(MQSESSION.java:134)
at com.ibm.mq.MQQueueManagerFactory.init(MQQueueManagerFactory.java:85)
at com.ibm.mq.MQQueueManagerFactory.getInstance(MQQueueManagerFactory.java:112)
at com.ibm.mq.MQQueueManager.clinit(MQQueueManager.java:153)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: com.ibm.mq.commonservices.CommonServicesException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Truncated. see log file for complete stacktrace

07-Jun-2011 10:11:08 o'clock CEST Warning WliSbTransports BEA-381914 Missing MQ library com.ibm.mq.jar; please add the missing library to the classpath
.



copy also

com.ibm.mq.jmqi.jar
com.ibm.mq.headers.jar
com.ibm.mq.commonservices.jar
com.ibm.mq.jar (already mentioned above)



to yourdomain/lib and restart.


You should see in the logs:

Following extensions directory contents added to the end of the classpath:
C:\Oracle\Middleware\user_projects\domains\soadev\lib\com.ibm.mq.jar;C:\Oracle
\Middleware\user_projects\domains\soadev\lib\com.ibm.mq.jmqi.jar blablabla


No comments: