Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsatisfiedLinkError in Tomcat 4

 
Gabriel Tomoloju
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gabriel Tomoloju
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks BEN!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic