| Author | Message | 
		
		  | aks | 
			  
				|  Posted: Tue Aug 30, 2005 4:57 pm    Post subject: Can't find library mqjbdf02 problem on AIX |   |  | 
		
		  | Voyager
 
 
 Joined: 19 Jul 2002Posts: 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 |  | 
		
		  |  | 
		
		  | csmith28 | 
			  
				|  Posted: Tue Aug 30, 2005 5:10 pm    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 15 Jul 2003Posts: 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 |  | 
		
		  |  | 
		
		  | aks | 
			  
				|  Posted: Tue Aug 30, 2005 5:26 pm    Post subject: |   |  | 
		
		  | Voyager
 
 
 Joined: 19 Jul 2002Posts: 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 |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Tue Aug 30, 2005 6:47 pm    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  | 
		
		  |  | 
		
		  | RogerLacroix | 
			  
				|  Posted: Tue Aug 30, 2005 6:57 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 Location: London, ON  Canada
 
 | 
			  
				|       
 RTFM.  WMQ Using Java, page 10.
  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | aks | 
			  
				|  Posted: Tue Aug 30, 2005 7:35 pm    Post subject: |   |  | 
		
		  | Voyager
 
 
 Joined: 19 Jul 2002Posts: 84
 
 
 | 
			  
				| Added /usr/mqm/java/lib to the AIX LIBPATH and it started working Thanks all for the help
 Alan
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |