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 21220] - java.util.zip.ZipException on Tomcat boot is less than helpful
Date Wed, 02 Mar 2005 17:03:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=21220>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=21220





------- Additional Comments From d.tonhofer@m-plify.com  2005-03-02 18:03 -------
Here we go again, this time in Tomcat 5.5.

Here is a little patch (diff --unified) for this badness:

---
./jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java.bak
 2005-03-02 17:53:50.136472408 +0100
+++
./jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
     2005-03-02 17:57:14.185452248 +0100
@@ -1540,7 +1540,7 @@
                        try {
                                jarFiles[i] = new JarFile(jarRealFiles[i]);
                        } catch (IOException e) {
-                               log.warn("Failed to open JAR", e);
+                               log.warn("Failed to open JAR file '" +
jarRealFiles[i] + "'", e);
                        }
                 }
             }
@@ -2040,7 +2040,12 @@

         if (triggers == null)
             return (true);
-        JarFile jarFile = new JarFile(jarfile);
+        try {
+           JarFile jarFile = new JarFile(jarfile);
+        } catch (IOException e) {
+           log.warn("Failed to open JAR file '" + jarfile + "'", e);
+           throw e;
+        }
         for (int i = 0; i < triggers.length; i++) {
             Class clazz = null;
             try {




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message