Bug 54851

Summary: Folder without web-fragment.xml should not impact the status of distributable
Product: Tomcat 7 Reporter: Trask Stalnaker <trask.stalnaker>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.0.39   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: patch

Description Trask Stalnaker 2013-04-16 08:47:44 UTC
Created attachment 30200 [details]
patch

revision 889701 "JARs without any web.xml fragments should not impact the status of distributable" was applied to scan(JarURLConnection jarConn), but was not applied to scan(File file).

I ran into this while trying to run cluster nodes from inside eclipse/wtp which supplies some folders to WebappClassLoader.addRepository(), e.g. <another workspace project>/classes.

This causes the app to be marked as distributable=false, regardless of supplying the <distributable/> tag in the web.xml.

The attached patch resolved the issue for me. Thanks.
Comment 1 Violeta Georgieva 2013-04-16 20:21:58 UTC
Thanks for the report.
Fixed in trunk and 7.0.x and will be included in 7.0.40 onwards.