Talk:Jetty/Feature/ContextProvider

From Eclipsepedia

Jump to: navigation, search

What happens if there is a deployment collision caused by a ContextProvider and a WebAppProvider both used simultaneously and both deploying the same web application? For example, this situation occurs in the standard Jetty distribution with webapps/test.war, contexts/test.xml in conjunction with etc/jetty-webapps.xml and etc/jetty-contexts.xml. --Abdull 21:40, 28 August 2012 (UTC)

Article Jetty/Feature/WebAppProvider gives an answer: [...] The contextXmlDir points to a directory like that the ContextProvider uses. When you use this option the WebappProvider checks any webapp or WAR files in the monitored directory for an associated context file. If it finds one, it defers to the ContextProvider to deploy the webapp. If it does not find a context file, the WebAppProvider deploys the webapp. [...] . --Abdull 21:49, 28 August 2012 (UTC)