The UnsatisfiedLinkError is usually an indication that LD_LIBRARY_PATH is
not set properly (if on *nix) and/or ORACLE_HOME is not set correctly.  If
you are on Windows, also add %ORACLE_HOME%\bin to your path.

-----Original Message-----
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: JDBCRealm question


 

According to the directions in the documentation, you should put the jar
that contains the JDBC driver in common/lib if you need it for
authentication as well as for your webapp.

 

If I do this, I cannot use startup.bat because I get:

Exception during startup processing

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)

 

However, if I add it to server/lib and in my webapp's lib I get an exception
stating that it was already loaded by another classloader when my webapp
tries to use it.

 

I'm using the famous Oracle classes12.jar for Oracle 9i release 1.

 

Has anyone had similar problems?  How do you make tomcat "see" the ocijdbc9
library in the "shared" mode?

 

Thanks,

Derrick

This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to