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 » General IBM MQ Support » Can't find library mqjbnd05 (libmqjbnd05.a or .so)

Post new topic  Reply to topic
 Can't find library mqjbnd05 (libmqjbnd05.a or .so) « View previous topic :: View next topic » 
Author Message
kailashbawane
PostPosted: Mon Jan 05, 2009 10:57 pm    Post subject: Can't find library mqjbnd05 (libmqjbnd05.a or .so) Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Hi Guys,

I am running mqmhs_start.ksh script to start the qmanager. I am using MQ v6.0.2.0 on AIX box. I exported following env variable

# export LIBPATH=/usr2/mqm/lib64:$LIBPATH
# export LD_LIBRARY_PATH=/usr2/mqm/java/lib64:$LD_LIBRARY_PATH

Still i am getting the error:
These are the exception on start:


MQSender Started for IFCD.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library mqjbnd05 (libmqjbnd05.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/var/mqm/lib64:/usr/java14/jre/bin/sovvm:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2044)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:910)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:879)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:230)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:224)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:496)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:177)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:179)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:215)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:773)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:698)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:658)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:154)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:527)

log4j:ERROR Could not find delphi2. All logging will FAIL.
java.net.UnknownHostException: delphi2: delphi2
at java.net.InetAddress.getAllByName0(InetAddress.java:1086)
at java.net.InetAddress.getAllByName0(InetAddress.java:1056)
at java.net.InetAddress.getAllByName(InetAddress.java:1050)
at java.net.InetAddress.getByName(InetAddress.java:964)
at org.apache.log4j.helpers.SyslogWriter.<init>(SyslogWriter.java:93)
at org.apache.log4j.net.SyslogAppender.setSyslogHost(SyslogAppender.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:205)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:164)
at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.java:540)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:192)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:604)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:733)

log4j:ERROR Could not find delphi2. All logging will FAIL.
java.net.UnknownHostException: delphi2
at java.net.InetAddress.getAllByName0(InetAddress.java:1091)
at java.net.InetAddress.getAllByName0(InetAddress.java:1056)
at java.net.InetAddress.getAllByName(InetAddress.java:1050)
at java.net.InetAddress.getByName(InetAddress.java:964)
at org.apache.log4j.helpers.SyslogWriter.<init>(SyslogWriter.java:93)
at org.apache.log4j.net.SyslogAppender.setSyslogHost(SyslogAppender.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:205)
at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:164)
at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.java:540)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:192)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:604)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:733)

MQReceiver Started for IFCD.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library mqjbnd05 (libmqjbnd05.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/var/mqm/lib64:/usr/java14/jre/bin/sovvm:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2044)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:910)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:879)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:230)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:224)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:496)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:177)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:179)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:215)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:773)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:698)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:658)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:154)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:527)


Pls help me out.

Thanks!
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Tue Jan 06, 2009 3:02 am    Post subject: Reply with quote

Grand High Poobah

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

Well first you need to find out whether your java is 64 bits or not

Then you can specify whether you want /usr/mqm/java/lib or /usr/mqm/java/lib64 on your libpath

Note that the only difference in .../java/lib and .../java/lib64 are the binary libraries for a bindings (server) connection to the qmgr...
If you do not have these libraries, may be you should use a client connection instead of a bindings connection...

You will still need .../java/lib on the classpath...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kailashbawane
PostPosted: Tue Jan 06, 2009 5:48 am    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Hello Saper,

Thanks for reply.

How can i know wether my java is 64b it or not?
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Tue Jan 06, 2009 2:23 pm    Post subject: Reply with quote

Grand High Poobah

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

kailashbawane wrote:
Hello Saper,

Thanks for reply.

How can i know wether my java is 64b it or not?


Code:
java -version

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kailashbawane
PostPosted: Tue Jan 06, 2009 6:06 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Dear Saper,
I got the following output:

Quote:
java -version


java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 (JIT enabled: jitc))
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Tue Jan 06, 2009 7:43 pm    Post subject: Reply with quote

Grand High Poobah

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

kailashbawane wrote:
Dear Saper,
I got the following output:

Quote:
java -version


java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 (JIT enabled: jitc))


Looks like 32 bit java...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kailashbawane
PostPosted: Tue Jan 06, 2009 8:34 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Hi saper,

How do you know the java version is 32bit?

Can you pls brief me the effect of that ?
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Wed Jan 07, 2009 3:52 am    Post subject: Reply with quote

Grand High Poobah

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

kailashbawane wrote:
Hi saper,

How do you know the java version is 32bit?

Can you pls brief me the effect of that ?

because if it were 64bit version it would say so in the -version output...

Furthermore if you run
Code:
which java
you should be given the path where you run java from. Resolving all the symlinks and checking the true path you should see whether you have /usr/java14_64/bin or something like that for a 64 bit version... AFAIK this is from memory and I am not in front of a server now...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kailashbawane
PostPosted: Wed Jan 07, 2009 5:38 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Jun 2007
Posts: 51
Location: Pune,INDIA

Thanks for reply sapher,

I got the following:

/>which java
/usr/java14/bin/java

From the output it seems like it is 32 bit ..am i right?

Now i am getting following exceptions..#


MQReceiver Started
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library ocijdbc10 (libocijdbc10.so or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/usr2/mqm/java/lib:/usr2/mqm/lib:/usr2/oracle/product/10.2.0/lib:.:/usr/java14/jre/bin/sovvm:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2044)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:910)
at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3138)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3134)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:220)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:438)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:296)
at oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:515)
at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:158)
at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:106)
at com.ibm.mq.XAtoJTA.helpGetConnection(XAtoJTA.java:404)
at com.ibm.mq.MQQueueManager.getJDBCConnection(MQQueueManager.java:262)
at com.ibm.mq.MQQueueManager.getJDBCConnection(MQQueueManager.java:207)


Can pls suggest something ?
_________________
ITO- MQ ISE.
" Slow n steady always win the race. "
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
fjb_saper
PostPosted: Wed Jan 07, 2009 8:58 pm    Post subject: Reply with quote

Grand High Poobah

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

If you are trying to use MQ as XA transaction coordinator you must have the switchfile on the LIBPATH.
It is typically in <MQINST>/java/lib/jdbc or <MQINST>/java/lib/odbc so you will need to have the switch file created and have it on your lib path...

If this is not the case talk to your oracle specialist. He might guide you there.... Have fun...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Can't find library mqjbnd05 (libmqjbnd05.a or .so)
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.