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 » WebSphere Process Server (WID/WPS/WAS+) » Problems with WAS 6.1ND and MQ6.0

Post new topic  Reply to topic
 Problems with WAS 6.1ND and MQ6.0 « View previous topic :: View next topic » 
Author Message
KoGor
PostPosted: Thu May 24, 2007 12:26 am    Post subject: Problems with WAS 6.1ND and MQ6.0 Reply with quote

Voyager

Joined: 09 Nov 2005
Posts: 81
Location: Moscow,Russia.

Hi all!

I have the following configuration:
- AIX 5.3 wit last ML
- WAS 6.1 ND with last fix pack 7
- MQ 6.0.2.1

I tried to install my ear application on WAS. Installation was OK but when I started application I got this error in SystemOut.log:

WebSphere Platform 6.1 [ND 6.1.0.7 cf70711.17] running with process name WAS01Cell01\WAS01Node01\server1 and process id 176228
Host Operating System is AIX, version 5.3
Java version = J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20060504 (JIT enabled)
J9VM - 20060501_06428_BHdSMr
JIT - 20060428_1800_r8
GC - 20060501_AA, Java Compiler = j9jit23, Java VM name = IBM J9 VM
was.install.root = /usr/IBM/WebSphere/AppServer
user.install.root = /usr/IBM/WebSphere/AppServer/profiles/AppSrv01
Java Home = /usr/IBM/WebSphere/AppServer/java/jre
ws.ext.dirs = /usr/IBM/WebSphere/AppServer/java/lib:/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/classes:/usr/IBM/WebSphere/AppServer/classes:/usr/IBM/WebSphere/AppServer/lib:/usr/IBM/WebSphere/AppServer/installedChannels:/usr/IBM/WebSphere/AppServer/lib/ext:/usr/IBM/WebSphere/AppServer/web/help:/usr/IBM/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/properties:/usr/IBM/WebSphere/AppServer/properties:/usr/IBM/WebSphere/AppServer/lib/startup.jar:/usr/IBM/WebSphere/AppServer/lib/bootstrap.jar:/usr/IBM/WebSphere/AppServer/lib/j2ee.jar:/usr/IBM/WebSphere/AppServer/lib/lmproxy.jar:/usr/IBM/WebSphere/AppServer/lib/urlprotocols.jar:/usr/IBM/WebSphere/AppServer/deploytool/itp/batchboot.jar:/usr/IBM/WebSphere/AppServer/deploytool/itp/batch2.jar:/usr/IBM/WebSphere/AppServer/java/lib/tools.jar
Java Library path = /usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/j9vm:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/mqm/java/lib64::/usr/lib
************* End Display Current Environment *************

.
.
.
[5/24/07 19:23:30:850 GMT+03:00] 0000001a WebGroup A SRVE0169I: Loading Web Module: SDS-RU_Admin.
[5/24/07 19:23:32:330 GMT+03:00] 0000001a ServletWrappe I SRVE0242I: [SDS-RU] [/SDS-RU_Admin] [Faces Servlet]: Initialization successful.
[5/24/07 19:23:32:346 GMT+03:00] 0000001a VirtualHost I SRVE0250I: Web Module SDS-RU_Admin has been bound to default_host[*:9080,*:80,*:9443,*:5060,*:5061,*:443].
[5/24/07 19:23:32:580 GMT+03:00] 0000001a MDBListenerIm I WMSG0043I: MDB Listener IncomingSignalsPort stopped for JMSDestination jms/queue/IncomingSignals
[5/24/07 19:23:32:602 GMT+03:00] 0000001a MDBListenerIm I WMSG0058I: Listener Port IncomingSignalsPort will attempt to restart in 60 seconds
[5/24/07 19:23:32:616 GMT+03:00] 0000001a ApplicationMg E WSVR0101W: An error occurred starting, SDS-RU
[5/24/07 19:23:32:626 GMT+03:00] 0000001a SystemOut O com.ibm.ws.exception.RuntimeError: java.lang.UnsatisfiedLinkError: mqjbnd05 (A file or directory in the path name does not exist.)
[5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:856)
[5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965)
[5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
[5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:341)
[5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
[5/24/07 19:23:32:632 GMT+03:00] 0000001a SystemOut O Caused by: java.lang.UnsatisfiedLinkError: mqjbnd05 (A file or directory in the path name does not exist.)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:953)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:922)
at java.lang.System.loadLibrary(System.java:451)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:872)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:228)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:222)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:168)
and so on...

I added path to library libmqjbnd05.so to me environment variable CLASSPATH and it appeared in Java Library path in the beginning of the log. But server still can't find these library.
I tried to change WAS variables MQ_INSTALL_ROOT and MQJMS_LIB_ROOT and set it to the path where MQ installed (/usr/mqm/) but it made everything worse - WAS couldn't start at all so I had to return default settings.

I searched through IBM site and found that this problem takes place with WAS 6.0 and MQ 5.3 and now it's fixed. So I don't know where to move next. Any advise will be appreciated!

Thank you in advance.

P.S. On Windows there is no such trouble - the application starts normally without problems.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 24, 2007 12:59 pm    Post subject: Reply with quote

Grand High Poobah

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

You need to ad the path to libmqjbnd05.so file to the LIBPATH variable...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
KoGor
PostPosted: Thu May 24, 2007 11:37 pm    Post subject: Reply with quote

Voyager

Joined: 09 Nov 2005
Posts: 81
Location: Moscow,Russia.

Quote:
You need to ad the path to libmqjbnd05.so file to the LIBPATH variable...

This was the first thing I did - add MQ libs to the environmental variables LIBPATH,PATH,CLASSPATH,LD_LIBRARY_PATH. I even tried to make a link to WAS lib pat to this file. Nothing helps. When WAS tries to start port listener this error happens.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu May 24, 2007 11:49 pm    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Can you show values of LIBPATH,PATH,CLASSPATH,LD_LIBRARY_PATH system variables and values of MQJMS_LIB_ROOT , MQ_INSTALL_ROOT WAS variables ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
KoGor
PostPosted: Fri May 25, 2007 3:58 am    Post subject: Reply with quote

Voyager

Joined: 09 Nov 2005
Posts: 81
Location: Moscow,Russia.

AIX variables:
#env
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/java14/jre/bin:/usr/java14/bin
LIBPATH=/usr/mqm/java/lib
LD_LIBRARY_PATH=/usr/mqm/java/lib
CLASSPATH=/usr/mqm/java/lib


WebSphere variables:
MQ_INSTALL_ROOT=${WAS_INSTALL_ROOT}/lib/WMQ

MQJMS_LIB_ROOT - wasn't defined by default, so I had to specify it myself (I've tried with and without it)
MQJMS_LIB_ROOT = ${MQ_INSTALL_ROOT}/java/lib

I've tried to set up this variables to /usr/mqm/ directory - it makes no difference I'm still getting this error.

SystemOut.log contains this string:
Java Library path = /usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/java/jre/bin/j9vm:/usr/IBM/WebSphere/AppServer/java/jre/bin:/usr/IBM/WebSphere/AppServer/bin:/usr/mqm/java/lib:/usr/lib


As you can see it has the path where library libmqjbnd05.so is situated.

# find / -name *mqjbnd05*
/usr/mqm/java/lib/libmqjbnd05.so
/usr/mqm/java/lib64/libmqjbnd05.so

I've no idea what to do next...
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri May 25, 2007 6:15 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Is MQ_INSTALL_ROOT (${WAS_INSTALL_ROOT}/lib/WMQ) points to install dir of MQ ?


Shouldn't it be "/usr/mqm" ?

Try to change it without changing MQJMS_LIB_ROOT
Code:

MQ_INSTALL_ROOT =/usr/mqm
MQJMS_LIB_ROOT  =${MQ_INSTALL_ROOT}/java/lib

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri May 25, 2007 10:05 am    Post subject: Reply with quote

Grand High Poobah

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

marcin.kasinski wrote:
Is MQ_INSTALL_ROOT (${WAS_INSTALL_ROOT}/lib/WMQ) points to install dir of MQ ?


Shouldn't it be "/usr/mqm" ?

Try to change it without changing MQJMS_LIB_ROOT
Code:

MQ_INSTALL_ROOT =/usr/mqm
MQJMS_LIB_ROOT  =${MQ_INSTALL_ROOT}/java/lib

kNOWN PROBLEM IN WAS 6.0:(maybe only ND) You cannot change the MQ path...
I might try to just point MQJMS_LIB_ROOT to /usr/mqm/java/lib ...

Was 6.0 has all the JMS libraries needed to connect to MQ (client connection).

I suggest you try a client configuration. This does not need the *.so libraries.
As WAS is transaction coordinator you should still be able to do multiphase commit. (I would test it just to make sure)

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
KoGor
PostPosted: Mon May 28, 2007 4:37 am    Post subject: Reply with quote

Voyager

Joined: 09 Nov 2005
Posts: 81
Location: Moscow,Russia.

Thank you for your replies.

I tried to set MQJMS_LIB_ROOT to /usr/mqm/java/lib but anyway it didn't work.


Quote:
I suggest you try a client configuration. This does not need the *.so libraries.


We can't use CLIENT connection, but I tried it anyway. The application works well but we've to use BINDING mode. So I opened PMR, because I can't see any solution.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 28, 2007 8:04 am    Post subject: Reply with quote

Grand High Poobah

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

Let us know the resolution of the PMR / Problem.

Thanks

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
KoGor
PostPosted: Tue May 29, 2007 2:27 am    Post subject: Reply with quote

Voyager

Joined: 09 Nov 2005
Posts: 81
Location: Moscow,Russia.

While we're waiting reply from IBM I've tried WAS 6.1 32bit and 64bit version s. On 64bit version I've got the same error. But 32bit version worked perfectly without any additional settings - I just installed WAS and then my application. It seems that WAS 64bit tries to load 32bit version of libmqjbnd05.so or 64-bit libmqjbnd05.so tries to load some 32bit libraries.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 29, 2007 1:08 pm    Post subject: Reply with quote

Grand High Poobah

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

That would have to do with the path, libpath and classpath variables.

You need to tune them for each environment (32/64 bits) and order will matter.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
KoGor
PostPosted: Wed May 30, 2007 4:47 am    Post subject: Reply with quote

Voyager

Joined: 09 Nov 2005
Posts: 81
Location: Moscow,Russia.

Quote:
You need to tune them for each environment (32/64 bits) and order will matter.

Believe me I've tried every possible choice, it didn't work.

But I've just solved the problem. During installation MQ creates links in /usr/lib for some libraries to the /usr/mqm/lib. So it didn't work even when I haven't got LIBPATH defined at all or had only /usr/mqm/lib64 path in LIBPATH. I removed all this links, removed all AIX environment variables (LIBPATH,CLASSPATH,PATH) and start WAS. And it works now... I don't know what it's - the lack of WAS documentation or some WAS internal bugs, but it's not obvious at all (even for me because I always careful about library paths and etc.) I think that notices must've been put into documentation as prerequisite for WAS 64bit installation.

P.S. And still have no answer from IBM support about opened PRM.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 30, 2007 5:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There are comments in the Quick Beginnings Guide for AIX about the implications of a 64bit queue manager that make mention of LIBPATH and etc, as well as being clear about what links are created and why and where.

As for the WAS documentation, I'm sure that there was originally a set of good instructions for a specific set of versions of WAS and MQ, and the instructions have possibly kept up with changes to versions of WAS (and possibly no longer match the version you're using) and likely not kept up with changes in MQ.
_________________
I am *not* the model of the modern major general.
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 » WebSphere Process Server (WID/WPS/WAS+) » Problems with WAS 6.1ND and MQ6.0
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.