Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not able to load a library in Tomcat

843829May 6 2009 — edited May 11 2009
I've been struggling to get a library to load on a Tomcat server running on Solaris and have tried multiple approaches.

I had assumed that the path that Tomcat looks for library files (java.library.path) was simply defined by the $LD_LIBRARY_PATH variable. It doesn't seem to be the case.

The library file that I need to load is in directory /opt/tibco/rv/lib so I explictly defined java.library.path before calling the Tomcat startup.sh scruots

export JAVA_OPTS="-Djava.library.path=/opt/tibco/RV/7.5.2/lib"

But now Tomcat seems to be trying to load the library files from a different location as can be seen below. I'm incredibly confused as libtibrvcmq.so is also in the java.library.path.


java.lang.UnsatisfiedLinkError: /opt/tibco/RV/7.5.2/lib/libtibrvnative.so: ld.so.1: java: fatal: libtibrvcmq.so: open failed: No such file or directory
java.lang.ClassLoader$NativeLibrary.load(Native Method)
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
java.lang.Runtime.loadLibrary0(Runtime.java:822)
java.lang.System.loadLibrary(System.java:992)
org.apache.jsp.MarvinSearch_jsp._jspService(MarvinSearch_jsp.java:201)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Edited by: whitechapel on May 6, 2009 10:50 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2009
Added on May 6 2009
4 comments
980 views