is it possible to prevent the execution of the ServletContainerInitializer of a provided jar.
I want to prevent the execution of JerseyServletContainerInitializer.java
which is provided by Glassfish 4.1 as an osgi-bundle (in jersey-container-servlet.jar
).
Or how can I use the <absolute-order>
of web.xml to enforce loading of the ResteasyServletInitializer.java
provided in resteasy-servlet-initializer-3.0.11.Final.jar
prior to the execution of the jersey counterpart?
I do not understand how this can be achieved using the web.xml.
Also the specification of ServletContainerInitializer
states:
In either case, ServletContainerInitializer services from web fragment JAR files excluded from an absolute ordering must be ignored, and the order in which these services are discovered must follow the application's classloading delegation model.
I therefore tried in my glassfish-web.xml but with no effect.
Please guide me on this one.
Cheers
(p.s. removing jersey-container-servlet.jar
from the glassfish/modules/ folder "works")