-
Bug
-
Resolution: Done
-
Major
-
3.6.1.Final, 4.0.0.Beta5
-
None
-
Compatibility/Configuration
-
Low
We are using <absolute-ordering> in our web.xml. This - as far as I understood the Servlet API Spec - disables autoscanning on all JARs not explicitly mentioned in the <absolute-ordering> section, including scans for Annotations.
I still want to use RestEasy's autoscan feature, but in order to do that, I have to mention resteasy-servlet-initializer in the <absolute-ordering> section of my web.xml, but since resteasy-servlet-initializer.jar does not contain a web-fragment.xml with a <name> tag (actually: it does not contain any web-fragment.xml at all) I can't do that.
Similar applies to resteasy-cdi, which has a web-fragment, but does not set the <name> tag on it, so I cannot mention it in our web.xml either. Servlet API Spec (afaik, please correct me if I'm wrong) does not define default names for web-fragments.
As a final remark: the usage of <others/> in <absolute-ordering> does solve the issue, but this is NOT an option for us.