tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8006] New: - native lib not found in common/lib but works in WEB-INF/lib
Date Fri, 12 Apr 2002 09:31:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8006>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8006

native lib not found in common/lib but works in WEB-INF/lib

           Summary: native lib not found in common/lib but works in WEB-
                    INF/lib
           Product: Tomcat 4
           Version: 4.0.4 Beta 2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ck@sulu3000.de


The Oracle oci driver needs a native library (ocijdbc8.dll). This library is
on my PATH and tomcat loads it fine if I place the oracle java libs
(classes12.jar) in WEB-INF/lib of my project. But because native libraries
may only be loaded once you suggest to put it in common/lib. With jdk1.3
this works, with jdk1.4 I get the following error:

java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
[...]

My setup:

Windows 2000 Prof / Tomcat 4.0.4b2 / sun jdk1.4 / oracle client 8.1.7

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message