aspose file tools*
The moose likes Tomcat and the fly likes UnsatisfiedLinkError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "UnsatisfiedLinkError" Watch "UnsatisfiedLinkError" New topic
Author

UnsatisfiedLinkError

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I have Tomcat 4. I have classes12.jar in the common/lib directory. The following code in a Java Class that my servlet calls is:

There is a couple more lines following. However my error occurs in the getConnection call.
I changed the url, user and password to say above to protect the innocent.
This code runs fine through java itself, without Tomcat or Servlet. The Servlet call is

I get the UnsatisfiedLinkError
Full stacktrace.


Sorry for the length of that stacktrace
Thanks
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Try changing oci8 in the db connection URI, to thin

So it should be:
jdbcracle:thin:@db_test_serv:1521:db_test_t

I can't think of a good reason to be using the oci driver outside of an application server. The thin driver requires less system resources, but the flip side is perhaps a slight performance hit.

If you are *required* to use the OCI drivers, then you need to make sure that the driver can find the native libraries it needs, which might require a few more things installed on your box than just the 'thin' driver requires.

This might help:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg47232.html
http://www.caucho.com/support/resin-interest/0102/0286.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsatisfiedLinkError
 
Similar Threads
Why am I getting this error!!!!
java.sql.SQLException: Communication link failure: null
Urgent!! struts and Tomcat4.0.1 problem
Oracle Connection from class used by Servlet
HTTP Status 500