Bug 54851 - Folder without web-fragment.xml should not impact the status of distributable
Summary: Folder without web-fragment.xml should not impact the status of distributable
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.39
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-16 08:47 UTC by Trask Stalnaker
Modified: 2013-04-16 20:21 UTC (History)
0 users



Attachments
patch (786 bytes, patch)
2013-04-16 08:47 UTC, Trask Stalnaker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.