This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "UnsatisfiedLinkError in Tomcat 4" Watch "UnsatisfiedLinkError in Tomcat 4" New topic
Author

UnsatisfiedLinkError in Tomcat 4

Gabriel Tomoloju
Greenhorn

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..
Thanks.

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
Sheriff

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
Greenhorn

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