MQ Plug-in error: "error connecting to local queue manager because the native libraries are not available on java.library.path: MQRC_MODULE_NOT_FOUND"

MQ Plug-in error: "error connecting to local queue manager because the native libraries are not available on java.library.path: MQRC_MODULE_NOT_FOUND"

book

Article ID: KB0079848

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ 7.6.0

Description

Sometimes while connecting to MQ queue manager you can see following error:

*****
error connecting to local queue manager because the native libraries are not available on java.library.path: MQRC_MODULE_NOT_FOUND
*****

Issue/Introduction

MQ Plug-in error: "error connecting to local queue manager because the native libraries are not available on java.library.path: MQRC_MODULE_NOT_FOUND"

Environment

BW version: Tibco ActiveMatrix BusinessWorks 5.13 IBM WebSphere MQ Explorer: Version: 7.5.0.1

Resolution

We face above mentioned error because mqjbnd.dll file is absent in D:/IBMnew/WebSphere MQ/java/java/lib and mqjbnd.dll, mqjbnd64.dll files are absent in D:/IBMnew/WebSphere MQ/java/java/lib64

The native library components, such as libmqjbnd.so/mqjbnd.dll are considered a component of the queue manager, and are tested to ensure compatibility with the queue manager they are supplied with.                                                      By not shipping the native library with the resource adapter, this allows for the correct version of the MQ bindings library to be available for the queue manager in use. For example, if WebSphere Application Server 7 is installed on the same server as MQ 6.0.2.5 or later, the queue manager supplied version of the MQ bindings library is used, which ensures compatibility with the queue manager.

In order to overcome from above mentioned error, After adding mqjbnd.dll file in D:/IBMnew/WebSphere MQ/java/java/lib location and mqjbnd.dll, mqjbnd64.dll files in D:/IBMnew/WebSphere MQ/java/java/lib64 location, we need to restart the MQ server using option "prepare WebSphere MQ Wizard". Also please note that we can use same or higher versions of '.dll' files of WebSphere MQ server.