Deployments are failing in wildfly-19

326 views
Skip to first unread message

vamsi M

unread,
Apr 8, 2021, 6:40:48 AM4/8/21
to WildFly
Hello ,

I am in process of migrating application from Jboss to wildfly-19 , I am facing below issue after starting the wildfly . Wildfly couldn't locate the  'mqjbnd' library . due to which few WAR files are failing . 

Does wildfly-19 support websphere MQ 7.5.0.6 . I t is working fine with jboss 7.

Please help , I am stuck with the error

2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1)                               Version information
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1)                               -------------------
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1)
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1) IBM WebSphere MQ JMS Provider
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1) 7.5.0.6
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1) p750-006-160226
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1) Production
2021-04-08 12:00:52,069 ERROR [stderr] (MSC service thread 1-1)


2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 -----------------------------------------------------------------------
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | Failed to load the WebSphere MQ native JNI library: 'mqjbnd'.
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | The JVM attempted to load the platform native library 'mqjbnd',
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | which was mapped to the filename: 'libmqjbnd.so'.
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | When attempting to load the library, the JVM reported the error
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | message:
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | 'no mqjbnd in java.library.path'
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | The JVM's bit-size is: '64'
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | The library path which was used to locate this library was:
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | '*** Configured java.library.path **********************************
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |  "/usr/java/packages/lib/amd64"
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |  "/usr/lib64"
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |  "/lib64"
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |  "/lib"
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 |  "/usr/lib"
2021-04-08 12:00:52,370 ERROR [stderr] (MSC service thread 1-1) [08/04/21 12:00:52.369.00]  0001 | ********************************************************************

Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2537;AMQ9558: The remote channel 'CL.SC1023AC.TIMS' on host '' is not currently available. [3=CL.SC1023AC.TIMS]

Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2537;AMQ9204: Connection to host 'sc1023ac.domian.com(49400)' rejected. [1=com.ibm.mq.jmqi.JmqiException[CC=2;RC=2537;AMQ9558: The remote channel 'CL.SC1023AC.TIMS' on host '' is not currently available.

Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'SC1023AC' with connection mode 'Client' and host name 'sc1023ac.domain.com(49400)'.
Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information.

Regards,
Vamsi

Wolfgang Mayer

unread,
Apr 8, 2021, 8:15:13 AM4/8/21
to WildFly

vamsi M

unread,
Apr 8, 2021, 10:40:17 AM4/8/21
to WildFly
Hello Mayer,

Yes , I deployed the adapter wmq.jmsra.rar .

As per your comment to test the the MQ installation , where can I find this ear file wmq.jmsra.ivt.ear to deploy and test my MQ setup ?

Thanks for the quick response .

Regards,
Vamsi 

Vesa Tuononen

unread,
Apr 8, 2021, 4:09:46 PM4/8/21
to vamsi M, WildFly
Hi, 

Log says that can't find jni lib. 
Double check is lib in any folder or add some additional folder into java.library.path if like to load lib from some other folder. 

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/3efd1a8e-4291-4ed9-84b5-3971b94db4a8n%40googlegroups.com.

vamsi M

unread,
Apr 8, 2021, 5:31:18 PM4/8/21
to WildFly
Hi Vesa,

I can see the library file in the server where the MQ is installed

/usr/mqm/java/lib/libmqjbnd.so
/usr/mqm/java/lib64/libmqjbnd.so

Do I need to have the same file in the server where my wildfly is installed ? 

Regards,
Vamsi Madduluru


vamsi M

unread,
Apr 8, 2021, 6:02:56 PM4/8/21
to WildFly
Hi Vesa,

Tried placing the library file in the path /usr/lib where the wildfly is installed , Below is the error

2021-04-08 23:59:52,134 ERROR [stderr] (MSC service thread 1-4) [08/04/21 23:59:52.133.01]  0001 |When attempting to load the library, the JVM reported the error
2021-04-08 23:59:52,134 ERROR [stderr] (MSC service thread 1-4) [08/04/21 23:59:52.133.01]  0001 | message:
2021-04-08 23:59:52,134 ERROR [stderr] (MSC service thread 1-4) [08/04/21 23:59:52.133.01]  0001 | '/usr/lib/libmqjbnd.so: /usr/lib/libmqjbnd.so: invalid ELF header (Possible cause: endianness mismatch)'

Regards,
Vamsi

Vesa Tuononen

unread,
Apr 9, 2021, 5:41:58 PM4/9/21
to vamsi M, WildFly
Hi
Now it does found the lib but did you copy correct version? 

ELF is the abbreviation of 'Executable and Linkable Format' (http://flint.cs.yale.edu/cs422/doc/ELF_Format.pdf)

This is normally a problem with 32/64 jvm mismatch


vamsi M

unread,
Apr 17, 2021, 5:57:30 PM4/17/21
to WildFly
Hi Vesa,

I copied the lib from the MQ server which my wildfly is trying to connect ,

I think the version is WMQ messaging : '7.5.0.6  as per the mq trace logs .

Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'SC1023AC' with connection mode 'Client' and host name 'sc1023ac.sss.se.scania.com(49400)'.
Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information.
        at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:585)
        at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:221)
        at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:426)
        at com.ibm.msg.client.wmq.internal.WMQXAConnection.<init>(WMQXAConnection.java:75)
        at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createV7ProviderConnection(WMQXAConnectionFactory.java:195)
        at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:6270)
        at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createProviderXAConnection(WMQXAConnectionFactory.java:107)
        at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:363)
        at com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:142)
        at com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:177)
        ... 22 more
Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2537' ('MQRC_CHANNEL_NOT_AVAILABLE').
        at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:209)


vamsi M

unread,
Apr 17, 2021, 6:20:09 PM4/17/21
to WildFly
 Wildfly is configured to use client mode to communicate with MQ , as per the logs mqjbnd is used only for bindings mode connection . But still the K+JVM is trying to find the native library .

Below is message in the logs,

The native library 'mqjbnd' is used by the WebSphere MQ classes for
Java and WebSphere MQ classes for JMS when creating a connection to
the queue manager using a 'bindings' mode connection. A bindings
mode connection is a connection which uses the system's memory to
communicate with the queue manager, as opposed to a 'client' mode
connection which uses a TCP/IP socket.
Reply all
Reply to author
Forward
0 new messages