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 » Can't find library mqjbdf02 problem on AIX

Post new topic  Reply to topic
 Can't find library mqjbdf02 problem on AIX « View previous topic :: View next topic » 
Author Message
aks
PostPosted: Tue Aug 30, 2005 4:57 pm    Post subject: Can't find library mqjbdf02 problem on AIX Reply with quote

Voyager

Joined: 19 Jul 2002
Posts: 84

I did a search on these forums for a problem I have just encountered after installing CSD 11 for MQ 5.3 on AIX (http://www.mqseries.net/phpBB2/viewtopic.php?t=13266&highlight=library+mqjbdf02)

I have shell script which runs a java program to get messages (with bindings JMS) off a queue and write the payloads to a file. This was working perfectly on base MQ 5.3, but stopped working immediately after applying CSD 11. The following error is generated:

Code:
2005-08-31 09:29:32,136 ERROR - java.lang.UnsatisfiedLinkError: Can't find library mqjbdf02  (libmqjbdf02.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/mqm/java/lib:/apps/zurich/message-daemon/lib:/usr/mqm/java/lib/jdbc
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2020)
   at java.lang.Runtime.loadLibrary0(Runtime.java:824)
   at java.lang.System.loadLibrary(System.java:908)



The libmqjbdf02.so is in the java.library.path under the /usr/mqm/java/lib directory, so I do not know what is going on. I am using bindings mode and JMS. When I use a client connection, it all works OK.

The shell script which worked under base MQ 5.3 is as follows

Code:
#!/bin/ksh

#----------------------------------------------------------------------
# au.com.zurich.integration.zstreamxa.batch.Export Startup Script
#----------------------------------------------------------------------

export HOME=/apps/zurich/message-daemon
export JAVA_EXE=/usr/java14/jre/bin/java
export MQJAVA=/usr/mqm/java/lib
export CTGJAVA=/apps/zurich/message-daemon/lib
export CTGBIN=/apps/zurich/message-daemon/lib
export DB2JAVA=/usr/opt/db2_08_01/java
export JAVA_LIB_PATH=$MQJAVA:$CTGJAVA

export CLASS_PATH=.
export CLASS_PATH=$CLASS_PATH:$HOME
export CLASS_PATH=$CLASS_PATH:$HOME/lib/log4j.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/commons-lang.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/commons-codec.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/xml-apis.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/xercesImpl.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/xalan.jar
export CLASS_PATH=$CLASS_PATH:$MQJAVA/jms.jar
export CLASS_PATH=$CLASS_PATH:$MQJAVA/com.ibm.mq.jar
export CLASS_PATH=$CLASS_PATH:$MQJAVA/com.ibm.mqjms.jar
export CLASS_PATH=$CLASS_PATH:$MQJAVA/connector.jar
export CLASS_PATH=$CLASS_PATH:$MQJAVA/jta.jar
export CLASS_PATH=$CLASS_PATH:$CTGJAVA/ctgclient.jar
export CLASS_PATH=$CLASS_PATH:$CTGJAVA/ctgserver.jar
export CLASS_PATH=$CLASS_PATH:$DB2JAVA/db2jcc.jar
export CLASS_PATH=$CLASS_PATH:$DB2JAVA/db2jcc_license_cu.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/au.com.zurich.util.jar
export CLASS_PATH=$CLASS_PATH:$HOME/lib/au.com.zurich.integration.jar
export CLASS_PATH=$CLASS_PATH:$HOME/conf/zstreamxa

export MAIN_CLASS=au.com.zurich.integration.zstreamxa.batch.Export

$JAVA_EXE -Xms128m -Xmx512m -Dlog4j.configuration=log4j-export.properties -Djava.library.path=$JAVA_LIB_PATH -cp $CLASS_PATH $MAIN_CLASS $1


The CSD went on cleanly. I also tried putting the com.ibm.mqbind.jar in the classpath, but with no affect.
I also added /usr/mqm/java/lib to the LD_LIBRARY_PATH, but no affect either.
Any help would be appreciated
Thanks
Alan
Back to top
View user's profile Send private message
csmith28
PostPosted: Tue Aug 30, 2005 5:10 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

2020 X’07E4’ MQRC_INHIBIT_VALUE_ERROR
On an MQSET call, the value specified for either the MQIA_INHIBIT_GET attribute or the
MQIA_INHIBIT_PUT attribute is not valid.
Corrective action: Specify a valid value.

Have you installed CSD11 on the Client Server?
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
aks
PostPosted: Tue Aug 30, 2005 5:26 pm    Post subject: Reply with quote

Voyager

Joined: 19 Jul 2002
Posts: 84

In MQI, I can set the attribute OK, but how would I set this in JMS code? Moreover, is this the cause of the problem for sure? Is this a feature of CSD11? The problem does not show up in Windows.
Thanks
Alan
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 30, 2005 6:47 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Check your library variable.
If my memory serves me well LD_LIBRARY_PATH is for Linux and Solaris.
Use LIBRARY_PATH for AIX.

But don't take my word for it. Check with your friendly AIX admin...

Enjoy
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Tue Aug 30, 2005 6:57 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada



RTFM. WMQ Using Java, page 10.
Back to top
View user's profile Send private message Visit poster's website
aks
PostPosted: Tue Aug 30, 2005 7:35 pm    Post subject: Reply with quote

Voyager

Joined: 19 Jul 2002
Posts: 84

Added /usr/mqm/java/lib to the AIX LIBPATH and it started working
Thanks all for the help
Alan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Can't find library mqjbdf02 problem on AIX
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.