Problem with WAS 6.1ND and MQ6.0 - Websphere

This is a discussion on Problem with WAS 6.1ND and MQ6.0 - Websphere ; 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 ...

+ Reply to Thread
Results 1 to 9 of 9

Thread: Problem with WAS 6.1ND and MQ6.0

  1. Problem with WAS 6.1ND and MQ6.0

    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.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:856)
    [5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:965)
    [5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.ws.runtime.component.ApplicationMgrImpl$Ap pInitializer.run(ApplicationMgrImpl.java:2131)
    [5/24/07 19:23:32:631 GMT+03:00] 0000001a SystemOut O at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.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.j ava: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(ClassLoa der.java:953)
    at java.lang.ClassLoader.loadLibraryWithClassLoader(C lassLoader.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:2 28)
    at java.security.AccessController.doPrivileged(Access Controller.java:192)
    at com.ibm.mq.server.MQSESSION.(MQSESSION.java:222)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:177)
    at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONS erver.java:70)
    at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:492 )
    at com.ibm.mq.MQManagedConnectionJ11.(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.

  2. Re: Problem with WAS 6.1ND and MQ6.0

    kostya@itar-tass.com wrote:
    > 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:
    >


    [snip]

    > [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.)


    [snip]

    >
    > 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.


    This isn't a CLASSPATH issue, but a PATH or LD_LIBRARY_PATH issue.
    UnsatisfiedLinkError means some native code is being called, and the JVM
    cannot find the named .dll (Windows) or .so (*nix).

    Ken

  3. Re: Problem with WAS 6.1ND and MQ6.0

    I have already tried to set /etc/profile with this variables:

    PATH=/usr/mqm/java/lib:/usr/mqm/java/lib64::/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/java14_64/jre/bin:/usr/java14_64/bin
    LIBPATH=/usr/mqm/java/lib:/usr/mqm/java/lib64
    LD_LIBRARY_PATH=/usr/mqm/java/lib:/usr/mqm/java/lib64

    It makes no difference. I've got the same error.

  4. Re: Problem with WAS 6.1ND and MQ6.0

    kostya@itar-tass.com wrote:
    > I have already tried to set /etc/profile with this variables:
    >
    > PATH=/usr/mqm/java/lib:/usr/mqm/java/lib64::/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/java14_64/jre/bin:/usr/java14_64/bin
    > LIBPATH=/usr/mqm/java/lib:/usr/mqm/java/lib64
    > LD_LIBRARY_PATH=/usr/mqm/java/lib:/usr/mqm/java/lib64
    >
    > It makes no difference. I've got the same error.


    I believe that you shouldn't have both the 32-bit and 64-bit libraries
    in your path. Judging from your JVM signature, you are running a 64-bit
    version:

    J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20060504 (JIT enabled)

    Apologies if you already know this, but a user needs to logoff then back
    on again if changes in /etc/profile are to be picked-up.

    From memory, I believe there are options in the WAS admin console to
    add specific entries to the native path for the application server.
    Rather than making a system-wide change to your LD_LIBRARY_PATH, I would
    recommend this approach if available.

    Ian.

    --
    ian.burnett@uk.ibm.com :: IBM, Hursley, UK

  5. Re: Problem with WAS 6.1ND and MQ6.0

    I have tried to set all paths to only 32bit or only 64bit libraries for environmental variables, also I removed all fixes from WAS and MQ. Even made a link in /usr/IBM/WebSphere/AppServer/lib/WMQ/java/lib to /usr/mqm/java/lib/libmqjbnd05.so and /usr/mqm/java/lib64/libmqjbnd05.so

    Even reboot whole machine every time - nothing helps

  6. Re: Problem with WAS 6.1ND and MQ6.0

    kostya@itar-tass.com wrote:
    > I have already tried to set /etc/profile with this variables:
    >
    > PATH=/usr/mqm/java/lib:/usr/mqm/java/lib64::/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/java14_64/jre/bin:/usr/java14_64/bin
    > LIBPATH=/usr/mqm/java/lib:/usr/mqm/java/lib64
    > LD_LIBRARY_PATH=/usr/mqm/java/lib:/usr/mqm/java/lib64
    >
    > It makes no difference. I've got the same error.


    If you look at the startup verbage in SystemOut.log, you'll see what the
    JVM thinks is your PATH. Does mqjbnd05.so exist in any of those directories?

    Ken

  7. Re: Problem with WAS 6.1ND and MQ6.0

    If you are talking about Java Library path then my answer is yes. I made a link in directory /usr/IBM/WebSphere/AppServer/java/jre/bin to the library /usr/mqm/lib/libmqjbnd05.so
    What is really confused me that in the SystemOut.log no mention about libmqjbnd05.so but only mqjbnd05 (UnsatisfiedLinkError: mqjbnd05 (A file or directory in the path name does not exist.))


  8. Re: Problem with WAS 6.1ND and MQ6.0

    Hi folks, we are experiencing _exactly_ the same problem here. Has anyone been able to figure this one out.

    Thanks!

  9. Re: Problem with WAS 6.1ND and MQ6.0

    hi thanks alot saetting LD_LIBRARY_PATH solved the problem ...also when you reboot your system you might loss that I was facing that issue in FEDORA11 one solution is to Add those commands to your ~/.bash_profile. After that logout and back in again.

    Cheers
    BAsant Rajvaidhya

+ Reply to Thread