----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

        I'm currently have my whole setup established - Apache,
JServ, mod_ssl etc. and I'm writing servlets which need to connect
to a local Oracle database.  The standard jdbc code works for
the Thin Driver.  However for using servlets the Oracle call
Interface driver is preferable and when I try to run one of these
servlets I get:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:341)
        at org.apache.jserv.JServConnection.run(JServConnection.java:197)
        at java.lang.Thread.run(Thread.java:485)

Now from some research I found the following:
JDBC OCI Drivers: If you are installing the JDBC OCI driver, you must also
set the
following value for the library path environment variable (LD_LIBRARY_PATH)
- [Oracle Home] / lib
On Solaris, this directory contains the shared object library libocijdbc8.so

I've checked this and the library does exist there.

My question is:  for a servlet where does the environment variable need to
be set.  I tried manually setting it in root before running apachectl start,
and in a number of other places - yet each time it gives the above error.
I'm almost 100% sure that this is the problem and I just need apache/jserv
to acknowledge the library path and it should work?  Anyone know?
Thanks and apologies for my unix ignorance.

David.




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to