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: | Catalina | Assignee: | 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 |
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. |
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.