Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.5
-
Fix Version/s: 6.1.18
-
Component/s: None
-
Labels:None
-
Environment:saw on Windows, though should happen on unix as well
-
Patch Submitted:Yes
-
Number of attachments :
Description
When using URLClassLoader to load jetty it is enough that one of the jars in the URLClassLoader's list of jars is corrupted for jetty not being able to deploy any contexts. The problem lies in the src/main/java/org/mortbay/jetty/webapp/TagLibConfiguration.java when doing new JarFile() which might throw ZipException.
I am attaching a fix that should catch such an error and log it but not fail the whole context deployment.
Thanks, patch applied to jetty-6. Although the jetty-7 code is different, I also added a try/catch block around the jar scanning to provide a similar solution.