-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Matthew:
We ran into this same problem this past week. It turns out that the only class
loader that can load native classes is the System classloader. So you need to move
the classes that use the JNI call to the CLASSPATH instead of JServ's repository.
It's in the FAQ, but kind of hidden. I'll add my entry there soon. Hope that
helps.
-MA
Matthew Lyons wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> Hi
>
> I am running Jserv on RedHat 6.0 and need to configure the
> LD_LIBRARY_PATH for my JDBC drivers shared library. I have tried adding
> this line to JServ config file:
>
> # An environment name with value passed to
> theJVM
> #
> Syntax:wrapper.env=[name]=[value]
> # Default: NONE on Unix
> Systems
> # SystemDrive and SystemRoot with appropriate values on Win32
> systems
>
> wrapper.env=LD_LIBRARY_PATH=/trifast/Empress/v8.20/jdbc/lib
>
> I got this error:
>
> [28/07/1999 14:48:57:344 GMT]
> java.lang.UnsatisfiedLinkError:connect
> at org.apache.jserv.JServConnection.processRequest(Compiled
> Code)
> at org.apache.jserv.JServConnection.run(Compiled
> Code)
> at java.lang.Thread.run(Compiled
> Code)
>
> So I thought JServ had lost its libraries do I changed the
> line:
> wrapper.env=LD_LIBRARY_PATH=/usr/local/jserv/lib;/trifast/Empress/v8.20/jdbc/lib
>
> I got this error:
>
> [28/07/1999 14:43:59:081 GMT] java.lang.UnsatisfiedLinkError: connect
> at
> at empress.jdbc.empressDriver.connect(Compiled Code)
> at empress.jdbc.empressDriver.connect(Compiled Code)
> at java.sql.DriverManager.getConnection(Compiled Code)
> at java.sql.DriverManager.getConnection(Compiled Code)
>
> Is it possible that connect is "clashing" so that either the JDBC
> drivers or JServ pick up the wrong library. I don't know much about C
> libs so any help would be appreciated.
>
> Regards
> Matt
> --
> Matt Lyons
> Trifast Systems Ltd
> [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> 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]
--
~-~-~-~-~-~-~-~-~-~-~-~-~-~-WEBEASY-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Michael Amster [EMAIL PROTECTED]
4676 Admiralty Way, Suite 300 Tel: 310.576.0770
Marina Del Rey, CA 90292 Fax: 310.576.2011
--
--------------------------------------------------------------
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]