I have a Host
that doesn't automatically deploy all web apps.
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false"
xmlValidation="false" xmlNamespaceAware="false">
But I do want the dreambear web app to automatically reload without a restart, for development purposes (hence this is on SO, not Server Fault).
Catalina/localhost/dreambear.xml:
<Context reloadable="true">
<Parameter name="gamePageUrl" value="http://****/dreambear.html" />
</Context>
I deploy the web app by putting dreambear.war in the webapps dir. Unfortunately, it doesn't automatically get reloaded:
- (Host:unpackWARs = false): The new version of the WAR is not detected
- (Host:unpackWARs = true): The new version of the WAR is not unpacked
- (Host:unpackWARs = true): If I delete the unpacked directory, the new WAR will be unpacked but not deployed.
Is there a way to achieve what I want? I don't want to enabled autoDeploy
because my context xml will be deleted every time I put in a new WAR (see here).