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: no mqjbnd02 in java.library.

Post new topic  Reply to topic
 java.lang.UnsatisfiedLinkError: no mqjbnd02 in java.library. « View previous topic :: View next topic » 
Author Message
sri_sridhar
PostPosted: Fri Oct 12, 2001 9:22 am    Post subject: Reply with quote

Newbie

Joined: 11 Oct 2001
Posts: 4

Hi:
I am writing a web application using java servlets and MQSeries. When I try to search for a queue manager and queue to get its atrributes I come up with this error in the error log file

[12/Oct/2001:11:33:44] failure ( 422): Internal error: exception thrown from the servlet service function (uri=/servlet/ViewQAttributesServlet): java.lang.UnsatisfiedLinkError: no mqjbnd02 in java.library.path, Stack: java.lang.UnsatisfiedLinkError: no mqjbnd02 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
at java.lang.Runtime.loadLibrary0(Runtime.java:470)
at java.lang.System.loadLibrary(System.java:778)
at com.ibm.mq.server.MQSESSION.(MQSESSION.java:139)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:66)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:240)
at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:148)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:136)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:154)
at com.ibm.mq.StoredManagedConnection.(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java, Compiled Code)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:560)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:509)
at com.ibm.mq.MQQueueManager.(MQQueueManager.java:286)
at ViewQAttributesServlet.openQueue(ViewQAttributesServlet.java:170)
at ViewQAttributesServlet.doPost(ViewQAttributesServlet.java:113)
at ViewQAttributesServlet.doGet(ViewQAttributesServlet.java:3
at javax.servlet.http.HttpServlet.service(HttpServlet.java:701)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:497)
----------------------------------------

My classpath is set up like this
.;C:Program FilesExceed.nthcljrcsv.jar;C:Program FilesExceed.nt;d:program filesjdk1.2.2jrebinclassic;D:ibmmqjavaprogram filesIBMMQSeriesJavalibcom.ibm.mq.jar;D:ibmmqjavaprogram filesIBMMQSeriesJavalibcom.ibm.mq.iiop.jar;D:ibmmqjavaprogram filesIBMMQSeriesJavalibcom.ibm.mqbind.jar;D:ibmmqjavaprogram filesIBMMQSeriesJavalibcom.ibm.mqjms.jar;d:mqclienttoolsJavaCintsamplesen_US;D:JavaMQlib; d:Netscapeserver4binhttpsjrebinclassic;d:NetscapeServer4binhttpsjar;D:Program Filesjdk1.2.2binjsdk2.1webpagesdocsapi;D:MQClientJAVALIB;D:ibmmqjavaprogram filesIBMMQSeriesJavalib;D:VisualCafeJavasrc;D:NetscapeServer4binhttpsjar;D:Program Filesjdk1.2.2jrelibextservlet.jar;d:j2sdkee1.3libj2ee.jar;d:jdk1.2.2bin;D:ibmmqjavaprogram filesIBMMQSeriesJavalibjndi.jar;D:MQWebclasses111.zip;D:jdk1.3.0_02jrelibrt.jar;D:j2sdkee1.3libclassesjndi.properties


I have my jvm12.conf file for the web server set as:
jvm.classpath=d:/Netscape/Server4/plugins/samples/servlets/beans.10/SDKBeans10.jar;d:/Netscape/Server4/plugins/samples/servlets/beans/SDKBeans.jar;d:/Netscape/Server4/bin/https/jar/Bugbase.jar;d:/Netscape/Server4/bin/https/jar/Calljsac.jar;d:/Netscape/Server4/docs/jar/teamsa.jar;d:/Netscape/Server4/docs/classes;D:/ibmmq/java/program files/IBM/MQSeries/Java/lib/com.ibm.mq.jar;D:/ibmmq/java/program files/IBM/MQSeries/Java/lib/com.ibm.mqbind.jar;D:/ibmmq/java/program files/IBM/MQSeries/Java/lib/com.ibm.mqjms.jar;D:MQWeb;
I would like to get some help asap.

Thank you.
sri



[ This Message was edited by: sri_sridhar on 2001-10-12 10:23 ]

[ This Message was edited by: sri_sridhar on 2001-10-12 10:28 ]
Back to top
View user's profile Send private message
kolban
PostPosted: Fri Oct 12, 2001 5:23 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

The /java/lib directory must be in your PATH environment variable. This is usually C:Program FilesIBMMQSeriesJavalib
Back to top
View user's profile Send private message
sri_sridhar
PostPosted: Tue Oct 16, 2001 2:47 pm    Post subject: Reply with quote

Newbie

Joined: 11 Oct 2001
Posts: 4



[ This Message was edited by: sri_sridhar on 2001-10-16 15:48 ]
Back to top
View user's profile Send private message
SivaSanthanam
PostPosted: Mon Mar 25, 2002 6:19 pm    Post subject: Reply with quote

Newbie

Joined: 24 Mar 2002
Posts: 1

Even if I add the javalib in the path variable I get the same error, Can Anybody help further
Thx
Siva
Back to top
View user's profile Send private message
abmanesh
PostPosted: Tue Mar 26, 2002 6:03 am    Post subject: Reply with quote

Apprentice

Joined: 06 Nov 2001
Posts: 39

Hi Siva,
If you have installed support pack MA88 the file should be in the MQSeriesInstallPathjavalib . First check to see if you could find the mqjbnd02 file on your system. If not you may want to re-install support pack MA88 and include the location of the file in the path env variable.
Back to top
View user's profile Send private message Send e-mail
max
PostPosted: Thu Oct 24, 2002 3:18 pm    Post subject: Reply with quote

Newbie

Joined: 17 Aug 2001
Posts: 2
Location: Boca Raton, FL

also DLLs that mqjbnd02.dll depends on must be resolved - the directory where MQM.DLL resides (from you MQ installation) must also be listed in the PATH env. variable.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Fri Oct 25, 2002 7:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

It sounds like you are picking up some old jar files. If you are encountering errors with mqjbnd02.dll, then you are running with an old MA88. The latest one uses a mqjbnd04.dll. Try downloading the latest MA88 and see what results you get.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
csdenis
PostPosted: Mon Oct 28, 2002 7:21 pm    Post subject: Reply with quote

Novice

Joined: 06 Oct 2002
Posts: 24

Have you try to add

libpath=<Your MQSereis Install Path>

to your config file?
Back to top
View user's profile Send private message
syangloo
PostPosted: Fri Nov 15, 2002 8:01 pm    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

Sorry,

Beside this question, I have a simulate error message like this. But my OS is HPUX11i, MQSI2.1, MQSeries 5.2 and AMI 1.2.1 and I try to run the AMI java program.

Below is the PATH and CLASSPATH I export in to the environment before I run the program.

PATH=$PATH:/opt/java1.3/bin
PATH=$PATH:/opt/mqm/bin
PATH=$PATH:/opt/mqm/java/lib
PATH=$PATH:/opt/mqm/lib
PATH=$PATH:/opt/mqm/amt/samp/java/bin
PATH=$PATH:/opt/java1.3/jre/bin
PATH=$PATH:/opt/mqm/amt
export PATH

export CLASSPATH=/opt/mqm/amt/samp/java/bin/com.ibm.mq.amt.samples.jar:/opt/mqm/java/lib/com.ibm.mq.amt.jar:/opt/java

Run the samples program

cd /opt/mqm/amt/samp
java com.ibm.mq.amt.samples.SendForget
>>> START AMI Sample SendForget
create()

Quote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/mqm/lib/libamtJava.sl: specified file is not a
shared library, or a format error was detected.

at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.ibm.mq.amt.AmNativeTracer.<init>(AmNativeTracer.java:51)
at com.ibm.mq.amt.AmSession.<init>(AmSession.java:9
at com.ibm.mq.amt.AmSessionFactory.createSession(AmSessionFactory.java:110)
at com.ibm.mq.amt.samples.SendForget.create(SendForget.java:137)
at com.ibm.mq.amt.samples.SendForget.main(SendForget.java:105)


Any lib file, environment i need to check or any patch i need to install?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
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: no mqjbnd02 in java.library.
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.