ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.UnsatisfiedLinkError: Can't find library mqjbdf02

Post new topic  Reply to topic
 java.lang.UnsatisfiedLinkError: Can't find library mqjbdf02 « View previous topic :: View next topic » 
Author Message
tissue88
PostPosted: Wed Feb 04, 2004 12:02 am    Post subject: java.lang.UnsatisfiedLinkError: Can't find library mqjbdf02 Reply with quote

Newbie

Joined: 03 Feb 2004
Posts: 1

I'm getting the following error after upgrading the MQ from 5.2 to 5.3.

[2/4/04 12:23:50:444 CST] 1533a5f8 SystemOut U java.lang.UnsatisfiedLinkError: Can't find library mqjbdf02 (libmqjbdf02.a or .so) in java.library.path
java.library.path=/usr/mqm/java/lib:/sysp/was40/AppServer/java/jre/bin:/sysp/was40/AppServer/java/jre/bin/classic:/sysp/was40/AppServer//lib/odbc/lib:/home/db2was1/db2was1u//sqllib/java12:/home/db2was1/db2was1u//sqllib/lib:/sysp/was40/AppServer//bin:/sysp/was40/AppServer//lib:/home/db2was1/db2was1u/sqllib/lib::/usr/lib:/usr/mqm/java/lib:
at java.lang.ClassLoader.loadLibrary(ClassLoader.java(Compiled Code))
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:835)
at com.ibm.mq.server.MQSESSION$2.run(MQSESSION.java:287)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.loadDefMsgLibrary(MQSESSION.java:291)
at com.ibm.mq.server.MQSESSION.spiConnect(MQSESSION.java:3114)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:212)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:153)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:189)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:737)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:671)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:452)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1659)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1129)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:170)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:145)

Below are my classpath and path.
Classpath = /sysp/was40/AppServer/properties:/sysp/was40/AppServer/lib/bootstrap.jar:/usr/mqm/java/lib:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/com.ibm.mqbind.jar:/usr/mqm/java/lib/com.ibm.mqjms.jar:/usr/mqm/java/lib/connector.jar:/usr/mqm/java/lib/fscontext.jar:/usr/mqm/java/lib/jms.jar:/usr/mqm/java/lib/jndi.jar:/usr/mqm/java/lib/jta.jar:/usr/mqm/java/lib/ldap.jar:/usr/mqm/java/lib/providerutil.jar:/usr/mqm/java/samples/base:/hsbc/glv/refdata:/usr/opt/db2_08_01/java/db2jcc.jar

Java Library path = /usr/mqm/java/lib:/sysp/was40/AppServer/java/jre/bin:/sysp/was40/AppServer/java/jre/bin/classic:/sysp/was40/AppServer//lib/odbc/lib:/home/db2was1/db2was1u//sqllib/java12:/home/db2was1/db2was1u//sqllib/lib:/sysp/was40/AppServer//bin:/sysp/was40/AppServer//lib:/home/db2was1/db2was1u/sqllib/lib::/usr/lib:/usr/mqm/java/lib:

It seems that the program is still looking for a MQ 5.2 library. I have tried to copy the required library to the path and it worked. However since the program is using JMS, this is not expected. Does anybody have any clue why that happens? Please let me know if additional information is required.

Thanks in advance.
Ada
Back to top
View user's profile Send private message
fschofer
PostPosted: Wed Feb 04, 2004 2:20 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

The library mqjbdf02 is also part of WMQ 5.3 Java.

If you use JMS with bindings connection you use JNI like "WMQ base java",
only client connection (JMS or base) do not use the libs.

Frank
Back to top
View user's profile Send private message Send e-mail
sebastiraj
PostPosted: Wed Feb 04, 2004 2:57 am    Post subject: Reply with quote

Novice

Joined: 04 Jul 2002
Posts: 11

You need to set the LD_LIBRARY_PATH correctly.
Check ur start script LD_LIBRARY_PATH entry to find out whether it is pointing to the correct directory.
indicate ur operating system also.

Sebasti,.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.UnsatisfiedLinkError: Can't find library mqjbdf02
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.