You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Would be good if there is a possibility to programmatically set a Jetty context XML file that is run after the processing of web.xml.
The use case would be for the deployer of a web application to be able to add or override init-params that depend on the deployment (e.g. the host, the timezone, the geographical location, the language, etc.).
Currently this mechanism exists, but it's hardcoded to look for the WEB-INF/jetty-web.xml file in the *.war.
The idea would be to introduce ContextHandler.setPostProcessXML(Resource r), with the semantic that is the resource is present, it is processed as last step in the web application configuration.
The text was updated successfully, but these errors were encountered:
@sbordet if it's just some params, then they can use an override-web.xml file to set <context-param>s for them. You use WebAppContext.setOverrideDescriptor(String) or WebAppContext.setOverrideDescriptors(List<String>) to give the location of the override-web.xml file, which is normally external to the war.
This issue has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.
Jetty version
10.0.x
Description
Would be good if there is a possibility to programmatically set a Jetty context XML file that is run after the processing of
web.xml
.The use case would be for the deployer of a web application to be able to add or override
init-param
s that depend on the deployment (e.g. the host, the timezone, the geographical location, the language, etc.).Currently this mechanism exists, but it's hardcoded to look for the
WEB-INF/jetty-web.xml
file in the*.war
.The idea would be to introduce
ContextHandler.setPostProcessXML(Resource r)
, with the semantic that is the resource is present, it is processed as last step in the web application configuration.The text was updated successfully, but these errors were encountered: