Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346030 - Support web-fragments and servlet annotations located outside of the WEB-INF/libs
Summary: Support web-fragments and servlet annotations located outside of the WEB-INF/...
Status: CLOSED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.4.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 7.4.x   Edit
Assignee: Hugues Malphettes CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 02:14 EDT by Hugues Malphettes CLA
Modified: 2011-09-20 15:52 EDT (History)
1 user (show)

See Also:


Attachments

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