Community
Participate
Working Groups
As discussed on the chat. The servlet-3.0 spec looks for web-fragment.xml files only when they are located inside the WEB-INF lib (and classes) folder. This makes it difficult during testing to inject a web-fragment.xml from elsewhere for example. It also makes it difficult for OSGi to extend the locations where those files and annotations be found and taken into account (bug 346027). The enhancement consists of being able to pass a URL to a web-fragment.xml file directly and have Metadata process it when the webapp is configured. We will review the order in which such contributions are added so it is as consistent as possible with the spec.
Fixed in 7.4.2 Support for a web-fragment.xml located inside a folder/META-INF/web-fragment.xml is committed. At the moment we don't have a usecase for an artbitrary url to locate the web-fragment.xml so we won't have it until then as it would make more complex and we are not sure how to handle the ordering between the web-fragment.xml.
Resolved -> Closed