wood burning stoves
The moose likes Tomcat and the fly likes UnsatisfiedLinkError in Tomcat 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "UnsatisfiedLinkError in Tomcat 4" Watch "UnsatisfiedLinkError in Tomcat 4" New topic

UnsatisfiedLinkError in Tomcat 4

Gabriel Tomoloju

Joined: Feb 23, 2004
Posts: 20
Hello guys, i get this error after login into an application on Tomcat 4.1.24
Any ideas as to what the problem is..

java.lang.UnsatisfiedLinkError: Native Library /oracle/product/9.2.0/lib32/libocijdbc9.so already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadLibrary(ClassLoader.java(Compiled Code))
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:267)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:365)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:547)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:347)
at java.sql.DriverManager.getConnection(DriverManager.java(Compiled Code))
at java.sql.DriverManager.getConnection(DriverManager.java:194)
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

I'm guessing here because it looks similar to a problem I've had before.
Sounds like you are using a native JDBC driver. There is a section in the release notes on JNI.

To put it in a nutshell, you only want to have one copy of the jar file.
Put it in TOMCAT_HOME/common/lib or TOMCAT_HOME/shared/lib and remove it from the WEB-INF/lib directory from within your apps.

Let me know if that was it.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Gabriel Tomoloju

Joined: Feb 23, 2004
Posts: 20
Thanks BEN!
I agree. Here's the link: http://aspose.com/file-tools
subject: UnsatisfiedLinkError in Tomcat 4
It's not a secret anymore!