| Author | Message | 
		
		  | csdenis | 
			  
				|  Posted: Mon Oct 07, 2002 10:32 pm    Post subject: java.lang.UnsatisfiedLinkError: libwmqjbind.so |   |  | 
		
		  | Novice
 
 
 Joined: 06 Oct 2002Posts: 24
 
 
 | 
			  
				| Dear all, 
 I am using WebSphere Application Server 4.0.1 for OS/390, MQSeries classes for Java supportpac MA1G, when I try to create QueueManager inside a servlet, I got the following error message:
 
 java.lang.UnsatisfiedLinkError: /usr/lpp/ma1g/java/lib/libwmqjbind.so: EDC5157I An internal error has occurred.
 .at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 .at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1835)
 .at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
 .at java.lang.Runtime.loadLibrary0(Runtime.java:780)
 .at java.lang.System.loadLibrary(System.java:865)
 .at com.ibm.mq.MQSESSION.<clinit>(MQSESSION.java:1204)
 .at com.ibm.mq.MQQueueManager.connect(MQQueueManager.java:1043)
 .at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:296)
 .at MQTestServlet.doGet(MQTestServlet.java:27)
 .at MQTestServlet.doPost(MQTestServlet.java:61)
 .at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 .at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 I've already add the following path in my CLASSPATH:
 /usr/lpp/ma1g/java/lib
 /usr/lpp/ma1g/java/lib/com.ibm.mq.jar
 
 and the LIBPATH:
 /usr/lpp/ma1g/java/lib
 
 Does anyone know what does the error message means?
 
 Thanks!
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | bower5932 | 
			  
				|  Posted: Tue Oct 08, 2002 10:50 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 27 Aug 2001Posts: 3023
 Location: Dallas, TX, USA
 
 | 
			  
				| I've never messed with a 390.  On distributed platforms, this error means that you don' t have your shared library path setup correctly.  You ought to be able to look for libwmqjbind.so on your system and put its path in your library path.  You mentioned that you did set the LIBPATH.  I'd double-check with the Using Java manual that this is the right one to set. |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | bduncan | 
			  
				|  Posted: Wed Oct 09, 2002 11:00 am    Post subject: |   |  | 
		
		  | Padawan
 
 
 Joined: 11 Apr 2001Posts: 1554
 Location: Silicon Valley
 
 | 
			  
				| I think people have posted this problem here before. Try using the search function, you might find what you need... But like bower, I haven't used OS/390, so I'm afraid I won't be of much help.  _________________
 Brandon Duncan
 IBM Certified MQSeries Specialist
 MQSeries.net forum moderator
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | RogerLacroix | 
			  
				|  Posted: Wed Oct 09, 2002 8:26 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 Location: London, ON  Canada
 
 | 
			  
				| Silly boy, tricks are for kids.   
 You need to get a little closer to the screen when reading the pdf docs.
   
 You are missing most of the jar files.  Remember on OS/390 you are connecting in bindings mode.  Your CLASSPATH should look something like this:
 
   
	| Code: |  
	| CLASSPATH=".:/usr/lpp/ma1g/java/lib/com.ibm.mq.jar:/usr/lpp/ma1g/java/lib/connector.jar:/usr/lpp/ma1g/java/lib/fscontext.jar:/usr/lpp/ma1g/java/lib/jta.jar:/usr/lpp/ma1g/java/lib/providerutil.jar:/usr/lpp/ma1g/java/lib" |  
 later
 Roger...
 _________________
 Capitalware: Transforming tomorrow into today.
 Connected to MQ!
 Twitter
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | csdenis | 
			  
				|  Posted: Thu Oct 10, 2002 4:40 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 06 Oct 2002Posts: 24
 
 
 | 
			  
				| Thanks for reply. However, I am using SupportPac MA1G, not MA88.  Those jar file you mention are only exist in MA88.  In MA1G, only 1 jar file (com.ibm.mq.jar) is supplied.
 
   
 I was told that I should turn on the control bit of the *.so file, and I am going to try this.  I don't know whether it is the exact solution.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | RogerLacroix | 
			  
				|  Posted: Thu Oct 10, 2002 8:18 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 Location: London, ON  Canada
 
 | 
			  
				| True. I should have said use MA88 for OS/390. 
 You are using the older Java MQ jar file that has limited support / features for OS/390.  You should definitely switch over.  Last month I was doing Java development work with MA88 for OS/390 and the jar files worked very well.
 
 later
 Roger...
 _________________
 Capitalware: Transforming tomorrow into today.
 Connected to MQ!
 Twitter
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |