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
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/ already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0( Code))
at java.lang.ClassLoader.loadLibrary( Code))
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at oracle.jdbc.oci8.OCIDBAccess.logon(
at oracle.jdbc.driver.OracleConnection.(
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection( Code))
at java.sql.DriverManager.getConnection(
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:
subject: UnsatisfiedLinkError in Tomcat 4
jQuery in Action, 3rd edition