Community
Participate
Working Groups
I have problem with hot re-deploying web-application (.war) to Jetty. New .war is detected good, but replacing existing .war with new is not detected. If this is supposed to work? Configuration: <Configure id="Server" class="org.eclipse.jetty.server.Server"> <Ref id="DeploymentManager"> <Call name="addAppProvider"> <Arg> <New class="org.eclipse.jetty.deploy.providers.ContextProvider"> <Set name="monitoredDirName"><Property name="jetty.home" default="." />/contexts</Set> <Set name="scanInterval">1</Set> </New> </Arg> </Call> </Ref> </Configure> Logs: 2011-06-15 10:28:21.780:INFO::Deployment monitor /opt/jetty-distribution-7.4.2.v20110526/webapps at interval 1 2011-06-15 10:28:21.788:INFO::Deployment monitor /opt/jetty-distribution-7.4.2.v20110526/contexts at interval 1
Using the ContextProvider you need to *touch* the context.xml file for that webapp to trigger the reload. If you use the WebappProvider then it ought to do the hot deploy I believe, reopen if you have issues with that. It is in the jetty-webapps.xml file
Touching context.xml did that .war reload. Thanks :)