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=7605>. 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=7605 Class loaders doesn't seem to load .zip libraries Summary: Class loaders doesn't seem to load .zip libraries Product: Tomcat 4 Version: 4.0.3 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Catalina class loaders doesn't seem to load .zip libraries. -- The problem : The standard Java class loader accepts both .zip and .jar. Catalina accepts only .jar. Nothing is said about that in the documentation (class-loader-howto.html). -- Steps to reproduce: I was trying to install the Oracle Thin driver for use in webapps within Tomcat 4.0.3. Windows NT 4.0. JDK 1.3.1_01. This driver is distributed in an archive named "classes12.zip". I tried to put this zip in %CATALINA_HOME%/lib because I want to share it between multiple webapps. I also tried to move it to %CATALINE_HOME%/webapps/%MYWEBAPP%/WEB-INF/lib. None worked. When the zip is %JAVA_HOME%/jre/lib/ext, it works. But that is not what I want. I finally found that if I put "classes12.zip" in %CATALINA_HOME%/lib and rename it to "classes12.jar" it works. -- Proposed fix: The bug is probably in org.apache.catalina.loader.WebAppClassLoader (lines 815, 831) and org.apache.catalina.loader.StandardClassLoader (line 1082) where there is a filter on ".jar" extension only. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>