Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346030

Summary: Support web-fragments and servlet annotations located outside of the WEB-INF/libs
Product: [RT] Jetty Reporter: Hugues Malphettes <hmalphettes>
Component: serverAssignee: Hugues Malphettes <hmalphettes>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jetty-inbox
Version: 7.4.1   
Target Milestone: 7.4.x   
Hardware: All   
OS: All   
Whiteboard:

Description Hugues Malphettes CLA 2011-05-17 02:14:24 EDT
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.
Comment 1 Hugues Malphettes CLA 2011-05-24 00:07:59 EDT
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.
Comment 2 Jesse McConnell CLA 2011-09-20 15:52:25 EDT
Resolved -> Closed