Bug 50997

Summary: StandardJarScanner ignores web-fragment.xml files in unpacked jars if they are not ending with ".jar"
Product: Tomcat 7 Reporter: Rodion Zhitomirsky <rodion.zhitomirsky>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P2    
Version: 7.0.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Fix for directories in classpath not ending with .jar

Description Rodion Zhitomirsky 2011-03-30 11:57:49 UTC
Created attachment 26816 [details]
Fix for directories in classpath not ending with .jar

We use eclipse sysdeo tomcat plugin for eclipse. It allows us to add target build directories of eclipse into tomcat classpath. All works fine until we decided to use web-fragment functionality. It failed to work despite the config:

<JarScanner scanAllDirectories="true"/>

I fixed the problem. Please, see attached proposed patch.
Comment 1 Mark Thomas 2011-03-30 16:07:12 UTC
Thanks for the report and for the patch. I applied a slightly modified version to 7.0.x (I fixed the root cause of the NPE) and it will be included in 7.0.12 onwards.