Hello,

you could add a jsp page, printing the environment variable, see:
https://mkyong.com/java/java-how-to-display-all-environment-variable/
The environment variables could be set globally, within the startup-script of 
tomcat or setenv.sh

But as Chris recommended, if there is a pure java JDBC-driver without native 
library, take that one:
https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads
That makes the application more robust and portable.

Greetings,
Thomas

-----Ursprüngliche Nachricht-----
Von: Kumawat, Priyanka <priyanka.kuma...@dxc.com> 
Gesendet: Montag, 7. März 2022 20:42
An: Tomcat Users List <users@tomcat.apache.org>
Betreff: RE: Tomcat - Error

Hello Thomas/Christopher, 

- Error message - /cgi/sales_BTSTEngine: error while loading shared libraries: 
libdb2.so.1: cannot open shared object file: No such file or directory

We have tried to search the libdb2.so.1 lib file on the server and it do exist 
under the 

/opt/IBM/db2/10.5.11/lib32/libdb2.so.1
/opt/IBM/db2/10.5.11/lib64/libdb2.so.1

DB2 doesn't got anything on their end for this error, how shall we check the 
environment variables LD_LIBRARY_PATH on the tomcat , we are using the Linux 
servers . 


Thanks & Regards,

Priyanka Kumawat | Middleware Admin
T +91.7879364483 
EMail - priyanka.kuma...@dxc.com
DL - ams-leveraged-webadmin-offsh...@dxc.com

DXC Technology







-----Original Message-----
From: Thomas Hoffmann (Speed4Trade GmbH) 
<thomas.hoffm...@speed4trade.com.INVALID> 
Sent: 08 March 2022 00:54
To: Tomcat Users List <users@tomcat.apache.org>
Subject: AW: Tomcat - Error



Hello,

it looks like your application is using a DB2 database.
The file libdb2.so is related to the JDBC-driver.
Please check the location of that shared-object and verify that the path is 
listed in the LD_LIBRARY_PATH environment variable.

It seems that Java can't find the file in the LD_LIBRARY_PATH.

Greetings,
Thomas

________________________________
Von: Kumawat, Priyanka <priyanka.kuma...@dxc.com>
Gesendet: Montag, 7. März 2022 19:48
An: Tomcat Users List
Betreff: Tomcat - Error

Hello Team ,

We are getting the below error on the tomcat Catalina .out logs , needed your 
help as is there any lib file corrupted , can you please help us on this error 
- this has occurred on production env.


WsUtils(getUserName)-> authentication is 
[org.springframework.security.authentication.UsernamePasswordAuthenticationToken@7b116622:
 Principal: websvcasc; Cre
dentials: [PROTECTED]; Authenticated: false; Details: null; Not granted any 
authorities].
WsUtils(getUserName)-> userName is [websvcasc].
WsUtils(getUserName)-> Exit.
[Ljava.lang.StackTraceElement;@211dde1c
/cgi/sales_ws_rules_engine: error while loading shared libraries: libdb2.so.1: 
cannot open shared object file: No such file or directory 
ThqUserDetailsService(loadUserByUsername)-> username [audramassie] authorities 
[[ROLE_Dealer, ROLE_USER]].
2022-03-07 12:18:19,935  WARN 
org.springframework.security.authentication.event.LoggerListener:67 - 
Authentication event InteractiveAuthenticationSuccessEven
t: audramassie; details: null
(getGywUserMask)-> GYW usermask is all 'N's
isAuthorized-> success
ThqWsAuthenticationManager(authenticate)-> Entry.

Thanks & Regards,

Priyanka Kumawat | Middleware Admin
T +91.7879364483
EMail - priyanka.kuma...@dxc.com<mailto:priyanka.kuma...@dxc.com>
DL - 
ams-leveraged-webadmin-offsh...@dxc.com<mailto:ams-leveraged-webadmin-offsh...@dxc.com>

DXC Technology






DXC Technology Company -- This message is transmitted to you by or on behalf of 
DXC Technology Company or one of its affiliates. It is intended exclusively for 
the addressee. The substance of this message, along with any attachments, may 
contain proprietary, confidential or privileged information or information that 
is otherwise legally exempt from disclosure. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended recipient 
of this message, you are not authorized to read, print, retain, copy or 
disseminate any part of this message. If you have received this message in 
error, please destroy and delete all copies and notify the sender by return 
e-mail. Regardless of content, this e-mail shall not operate to bind DXC 
Technology Company or any of its affiliates to any order or other contract 
unless pursuant to explicit written agreement or government initiative 
expressly permitting the use of e-mail for such purpose.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to