Hello,
My application relies on native libraries (C++) and we use LD_LIBRARY_PATH in Tomcat, which works fine. However, if we use the same in server.env or exporting on the console before server startup, it gives the below message in logs.
0000034 id=00000000 com.ibm.ws.webcontainer.filter.FilterInstanceWrapper E service SRVE8109W: Uncaught exception thrown by filter filterChainProxy: java.lang.UnsatisfiedLinkError: Native Library /home/data/webapp1/bin/libcrap.so already loaded in another classloader
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:208)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:181)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:322)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:294)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:1801)
at java.base/java.lang.System.loadLibrary(System.java:754)
We did try by adding library in server.xml , which gave the message of "can't load libcrap.so"
Any suggestions on unblocking the situation?
------------------------------
Anoop KR
------------------------------