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 Discussion » The system could not dynamically load the shared library

Post new topic  Reply to topic Goto page 1, 2  Next
 The system could not dynamically load the shared library « View previous topic :: View next topic » 
Author Message
vutkuri
PostPosted: Fri Jul 06, 2007 3:15 pm    Post subject: The system could not dynamically load the shared library Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

I have upgraded MQ5.3 to MQ6.0 and I have built new 64 bit libraries for message exit programs and I have added in the channel definitions, when I start the channel, the channel is going into retrying status and I am attaching qmgr error logs(message exit programs worked in MQ5.3)
please can you help me
MQ6175: The system could not dynamically load the shared library
'/var/mqm/exits64/libBcbsaChannelExit.so'. The system returned error message
'ld.so.1: /opt/mqm/bin/runmqchl: fatal: libxerces-c.so.27: open failed: No such
file or directory'. The queue manager will continue without this module.

EXPLANATION:
This message applies to UNIX systems. The shared library
'/var/mqm/exits64/libBcbsaChannelExit.so' failed to load correctly due to a
problem with the library.
ACTION:
Check the file access permissions and that the file has not been corrupted.
----- amqxufnx.c : 1158 -------------------------------------------------------
07/06/07 23:02:50 - Process(267.1) User(mqm) Program(runmqchl_nd)
AMQ9535: User exit not valid.

EXPLANATION:
Channel program 'BCBSA.TO.FL' ended because user exit
'libBcbsaChannelExit.so(CEGateway)' is not valid.
ACTION:
Ensure that the user exit is specified correctly in the channel definition, and
that the user exit program is correct and available.
----- amqrexta.c : 5295 -------------------------------------------------------
07/06/07 23:02:50 - Process(267.1) User(mqm) Program(runmqchl_nd)
AMQ9999: Channel program ended abnormally.

EXPLANATION:
Channel program 'BCBSA.TO.FL' ended abnormally.
ACTION:
Look at previous error messages for channel program 'BCBSA.TO.FL' in the error
files to determine the cause of the failure
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Jul 06, 2007 8:33 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Its perfectly giving the error

1. No such file or directory'
2. Check the file access permissions and that the file has not been corrupted.

Ensure the above two....

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jul 07, 2007 9:04 am    Post subject: Reply with quote

Grand High Poobah

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

You realize that for 6.0 you need the exit both in 64 bit and 32 bit version?
Did you recompile the exit for 64 bits?
As well are all the libraries available (see the error messages).

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vutkuri
PostPosted: Sat Jul 07, 2007 1:36 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

I have checked the libraries with my other program and it is working fine and our C++ developer is saying that MQ is not recognizing the libraries. I have put the Library.so file in /var/mqm/exits64 and I have altererd the channel definition MSGEXIT(library.so(CEGateway)). Is there any PATH settings in MQV6.0.
please help me out.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sat Jul 07, 2007 1:51 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

vutkuri wrote:
I have altererd the channel definition MSGEXIT(library.so(CEGateway)).

And that's probably the problem. Look up message exits in the WMQ Application Programming Guide, I'm pretty sure you don't specify the file extension.

i.e. MSGEXIT(library(CEGateway))

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Nigelg
PostPosted: Sun Jul 08, 2007 10:10 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

This is nothing to do with the channel defintion; check the error msg

Quote:
'ld.so.1: /opt/mqm/bin/runmqchl: fatal: libxerces-c.so.27: open failed: No such file or directory'.


The library load failed because a dependent library could not be found. Check that LIBPATH contains a path to that library, and that the path is readable by the mqm user.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 09, 2007 3:26 am    Post subject: Reply with quote

Grand High Poobah

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

And as Nigel so nicely points out, you need to check both LIBPATH and LIBPATH64.... Enjoy And of course the content of both of those libraries is different...(32/64 bit version)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vutkuri
PostPosted: Mon Jul 09, 2007 9:10 am    Post subject: Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

HOSTNAME=CHGVBWINT1
LD_LIBRARY_PATH=.:/opt/mqm/lib64:/usr/local/lib/sparcv9:/export/home/mqm/xxz/xerces-c-src_2_7_0/lib:/usr/lib/64
CLASSPATH=:/export/home/mqm:.:/opt/mqm/lib64:/usr/local/lib/sparcv9:/export/home/mqm/xxz/xerces-c-src_2_7_0/lib:/usr/lib/64
PS1=mqm@CHGVBWINT1$
SSH_CONNECTION=10.100.31.50 2229 10.100.11.147 22
USER=mqm
MACHTYPE=sparc-sun-solaris2.9
MAIL=/usr/mail/mqm
EDITOR=vi
JAVA_HOME=/usr/java
LOGNAME=mqm
SHLVL=1
SHELL=/bin/ksh
HOSTTYPE=sparc
OSTYPE=solaris2.9
HOME=/export/home/mqm
TERM=xterm
PATH=/usr/bin:/usr/local/bin:/opt/sfw/bin:/usr/X/bin:/usr/dt/bin:/usr/openwin/bin:/opt/openssh/bin:/usr/local/bin
SSH_TTY=/dev/pts/7
_=/usr/bin/env


Is there anything I need to add classpath and my channel definition is here
CHANNEL(BCBSA.TO.FL) CHLTYPE(SDR)
ALTDATE(2007-07-09) ALTTIME(16.22.04)
BATCHHB(0) BATCHINT(0)
BATCHSZ(50) COMPHDR(NONE)
COMPMSG(NONE) CONNAME(10.100.11.147(1418))
CONVERT(NO) DESCR( )
DISCINT(6000) HBINT(300)
KAINT(AUTO) LOCLADDR( )
LONGRTY(999999999) LONGTMR(1200)
MAXMSGL(4194304) MCANAME( )
MCATYPE(PROCESS) MCAUSER( )
MODENAME( ) MONCHL(QMGR)
MSGDATA( )
MSGEXIT(libBcbsaChannelExit(CEGateway))
NPMSPEED(FAST) PASSWORD( )
RCVDATA( ) RCVEXIT( )
SCYDATA( ) SCYEXIT( )
SENDDATA( ) SENDEXIT( )
SEQWRAP(999999999) SHORTRTY(10)
SHORTTMR(60) SSLCIPH( )
SSLPEER( ) STATCHL(QMGR)
TPNAME( ) TRPTYPE(TCP)
USERID( ) XMITQ(FL.XMIT.Q)

So please help me I am still getting the same old error
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Jul 09, 2007 12:44 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

vutkuri wrote:
The system returned error message 'ld.so.1: /opt/mqm/bin/runmqchl: fatal: libxerces-c.so.27: open failed: No such file or directory'.

vutkuri wrote:
LD_LIBRARY_PATH=.:/opt/mqm/lib64:/usr/local/lib/sparcv9:/export/home/mqm/xxz/xerces-c-src_2_7_0/lib:/usr/lib/64

Therefore, does following file actually exits?
/export/home/mqm/xxz/xerces-c-src_2_7_0/lib/libxerces-c.so

If so, then do the following command:
Code:
file /export/home/mqm/xxz/xerces-c-src_2_7_0/lib/libxerces-c.so


Also, do the following commands against your exit:
Code:
file /var/mqm/exits64/library.so
ldd /var/mqm/exits64/library.so



Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
vutkuri
PostPosted: Mon Jul 09, 2007 1:35 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

Thanks for reply

Here is the output of file /var/mqm/exits64/PlanChannelExits.so

mqm@CHGVBWINT1$ file /var/mqm/exits64/libBcbsaChannelExit.so
/var/mqm/exits64/libBcbsaChannelExit.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

Here is the output of ldd /var/mqm/exits64/PlanChannelExits.so

mqm@CHGVBWINT1$ ldd /var/mqm/exits64/libBcbsaChannelExit.so
libpthread.so.1 => /usr/lib/64/libpthread.so.1
libxerces-c.so.27 => (file not found)
libstdc++.so.6 => (file not found)
libm.so.1 => /usr/lib/64/libm.so.1
libgcc_s.so.1 => (file not found)
libc.so.1 => /usr/lib/64/libc.so.1
libdl.so.1 => /usr/lib/64/libdl.so.1
libthread.so.1 => /usr/lib/64/libthread.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/sparcv9/libc_psr.so.1

Erlier I didn't get any errors in the output of ldd /var/mqm/exits64/PlanChannelExits.so but I have removed LD_LIBRARY_PATH from env.
Help me out
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Jul 09, 2007 1:57 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Writing exits is an advanced level topic which requires the person to be an expert C programmer and have indepth knowledge of MQ.

vutkuri wrote:
libxerces-c.so.27 => (file not found)
libstdc++.so.6 => (file not found)
libgcc_s.so.1 => (file not found)

vutkuri wrote:
Help me out

Nobody can help you out until you resolve your 'file not found' issue.


Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
vutkuri
PostPosted: Fri Jul 20, 2007 3:54 am    Post subject: Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

Now I resolved file not found problems, but still I am getting old problems. I have upgraded to MQV6(Solaris). Here I am attaching all my information mqs.ini,qm.ini, qmgr errors, environment

ENVIRONMENT

mqm@CHGVBWINT1$ env
PWD=/var/mqm/exits64
XERCESCROOT=/export/home/mqm/XERCES64/xerces-c-src_2_7_0
TZ=GMT
HOSTNAME=CHGVBWINT1
LD_LIBRARY_PATH=/opt/mqm/lib64:/export/home/mqm/XERCES64/xerces-c-src_2_7_0/lib: /usr/local/lib/sparcv9:/usr/lib/64
CLASSPATH=:/export/home/mqm:/opt/mqm/lib64:/export/home/mqm/XERCES64/xerces-c-sr c_2_7_0/lib:/usr/local/lib/sparcv9:/usr/lib/64
PS1=mqm@CHGVBWINT1$
SSH_CONNECTION=10.100.11.193 4972 10.100.11.147 22
USER=mqm
MACHTYPE=sparc-sun-solaris2.9
MAIL=/usr/mail/mqm
OLDPWD=/export/home/mqm
EDITOR=vi
JAVA_HOME=/usr/java
LOGNAME=mqm
SHLVL=1
SHELL=/bin/ksh
HOSTTYPE=sparc
OSTYPE=solaris2.9
HOME=/export/home/mqm
TERM=xterm
PATH=/usr/bin:/usr/local/bin:/opt/sfw/bin:/usr/X/bin:/usr/dt/bin:/usr/openwin/bi n:/opt/openssh/bin:/export/home/mqm/XERCES64/xerces-c-src_2_7_0/src/xercesc
SSH_TTY=/dev/pts/14
_=/usr/bin/env




mqs.ini

#********************************************************************#
#* *#
#* <START_COPYRIGHT> *#
#* Licensed Materials - Property of IBM *#
#* *#
#* 63H9336 *#
#* (C) Copyright IBM Corporation 1994, 2000 *#
#* *#
#* <END_COPYRIGHT> *#
#* *#
#********************************************************************#
#***********************************************************************#
#* Module Name: mqs.ini *#
#* Type : MQSeries Machine-wide Configuration File *#
#* Function : Define MQSeries resources for an entire machine *#
#* *#
#***********************************************************************#
#* Notes : *#
#* 1) This is the installation time default configuration *#
#* *#
#***********************************************************************#
AllQueueManagers:
#********************************************************************#
#* The path to the qmgrs directory, below which queue manager data *#
#* is stored *#
#********************************************************************#
DefaultPrefix=/var/mqm

ClientExitPath:
ExitsDefaultPath=/var/mqm/exits

LogDefaults:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=CIRCULAR
LogBufferPages=17
LogDefaultPath=/var/mqm/log
QueueManager:
Name=BXB2DEVPN01
Prefix=/var/mqm
Directory=BXB2DEVPN01
QueueManager:
Name=BXB2DEVHR01
Prefix=/var/mqm
Directory=BXB2DEVHR01
QueueManager:
Name=BXB2DEVCC01
Prefix=/var/mqm
Directory=BXB2DEVCC01
QueueManager:
Name=BXINT1QA1SIMPLAN
Prefix=/var/mqm
Directory=BXINT1QA1SIMPLAN
QueueManager:
Name=BCBSACC01
Prefix=/var/mqm
Directory=BCBSACC01
QueueManager:
Name=BCBSAPN01
Prefix=/var/mqm
Directory=BCBSAPN01



qm.ini


mqm@CHGVBWINT1$ cat qm.ini
#*******************************************************************#
#* Module Name: qm.ini *#
#* Type : WebSphere MQ queue manager configuration file *#
# Function : Define the configuration of a single queue manager *#
#* *#
#*******************************************************************#
#* Notes : *#
#* 1) This file defines the configuration of the queue manager *#
#* *#
#*******************************************************************#
ExitPath:
ExitsDefaultPath=/var/mqm/exits
ExitsDefaultPath64=/var/mqm/exits64
#* *#
#* *#
Log:
LogPrimaryFiles=3
LogSecondaryFiles=2
LogFilePages=1024
LogType=CIRCULAR
LogBufferPages=0
LogPath=/var/mqm/log/BCBSACC01/
LogWriteIntegrity=TripleWrite
Service:
Name=AuthorizationService
EntryPoints=13
ServiceComponent:
Service=AuthorizationService
Name=MQSeries.UNIX.auth.service
Module=/opt/mqm/lib64/amqzfu
ComponentDataSize=0




ERROR


07/19/07 22:34:44 - Process(6077.1) User(mqm) Program(runmqchl_nd)
AMQ9002: Channel 'BCBSA.TO.FL' is starting.

EXPLANATION:
Channel 'BCBSA.TO.FL' is starting.
ACTION:
None.
-------------------------------------------------------------------------------
07/19/07 22:34:44 - Process(6077.1) User(mqm) Program(runmqchl_nd)
AMQ6174: The dynamically loadable shared library
'/var/mqm/exits64/LIBBCBSACHANNELEXIT' was not found. The system returned error
number '2' and error message 'No such file or directory'. The queue manager
will continue without this module.

EXPLANATION:
This message applies to UNIX systems. The shared library
'/var/mqm/exits64/LIBBCBSACHANNELEXIT' was not found.
ACTION:
Check that the file exists, and is either fully qualified or is in the
appropriate director, also check the file access permissions.
-------------------------------------------------------------------------------
07/19/07 22:34:45 - Process(6077.1) User(mqm) Program(runmqchl_nd)
AMQ9535: User exit not valid.

EXPLANATION:
Channel program 'BCBSA.TO.FL' ended because user exit 'LIBBCBSACHANNELEXIT' is
not valid.
ACTION:
Ensure that the user exit is specified correctly in the channel definition, and
that the user exit program is correct and available.
----- amqrexta.c : 5295 -------------------------------------------------------
07/19/07 22:34:45 - Process(6077.1) User(mqm) Program(runmqchl_nd)
AMQ9999: Channel program ended abnormally.

EXPLANATION:
Channel program 'BCBSA.TO.FL' ended abnormally.
ACTION:
Look at previous error messages for channel program 'BCBSA.TO.FL' in the error
files to determine the cause of the failure.

So please can you help me.

Thanks
Back to top
View user's profile Send private message
vutkuri
PostPosted: Fri Jul 20, 2007 4:06 am    Post subject: Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

Here is the output of ldd

mqm@CHGVBWINT1$ ldd /var/mqm/exits64/libBcbsaChannelExit.so
libpthread.so.1 => /usr/lib/64/libpthread.so.1
libxerces-c.so.27 => /export/home/mqm/XERCES64/xerces-c-src_2_7_0/lib/libxerces-c.so.27
libstdc++.so.6 => /usr/local/lib/sparcv9/libstdc++.so.6
libm.so.1 => /usr/lib/64/libm.so.1
libgcc_s.so.1 => /usr/local/lib/sparcv9/libgcc_s.so.1
libnsl.so.1 => /usr/lib/64/libnsl.so.1
libsocket.so.1 => /usr/lib/64/libsocket.so.1
libgen.so.1 => /usr/lib/64/libgen.so.1
libc.so.1 => /usr/lib/64/libc.so.1
libdl.so.1 => /usr/lib/64/libdl.so.1
libmp.so.2 => /usr/lib/64/libmp.so.2
libthread.so.1 => /usr/lib/64/libthread.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/sparcv9/libc_psr.so.1

Here is the output of file

mqm@CHGVBWINT1$ file /var/mqm/exits64/libBcbsaChannelExit.so
/var/mqm/exits64/libBcbsaChannelExit.so: ELF 64-bit MSB dynamic lib SPARC V9 Version 1, dynamically linked, not stripped
Back to top
View user's profile Send private message
Nigelg
PostPosted: Fri Jul 20, 2007 4:40 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Quote:
MSGEXIT(libBcbsaChannelExit(CEGateway))


Quote:
'/var/mqm/exits64/LIBBCBSACHANNELEXIT'


Add single quotes to the exit definition
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
vutkuri
PostPosted: Fri Jul 20, 2007 7:44 am    Post subject: Reply with quote

Apprentice

Joined: 19 Feb 2007
Posts: 35

I am using single quotes

alter chl(bcbsa.to.fl) chltype(sdr) msgexit('libBcbsaChannelExit.so(CEGateway)')

Still I am getiing problems with loading the exit, Is there any configuration issue? I am having
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General Discussion » The system could not dynamically load the shared library
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.