• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

UnsatisfiedLinkError

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/[email protected]/msg47232.html
http://www.caucho.com/support/resin-interest/0102/0286.html
 
Always look on the bright side of life. At least this ad is really tiny:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic