I'm using Tomcat 7.0.67 on Linux Mint 17. I have a WebApp.xml file in $TOMCAT_HOME/conf/Catalina/localhost
Is any additional configuration required to get Tomcat to automatically re-deploy my application whenever I re-build it using Maven? Because for some reason this does not seem to work.
Initially Tomcat gets it deployed alright but it does not re-deploy the application whenever the war file is updated.
1. Tomcat does not detect changes instantly. It scans for them periodically. You may not be waiting long enough.
2. If your WAR is being "exploded" (unzipped), the exploded copy of the WAR is the authoritative one. even if you deploy a newer WAR file. The easiest way to avoid this is to delete the exploded WAR. Tomcat will then explode the new WAR file and make that the authoritative copy of the app. Or you could switch off the auto-unzip feature. It's turned on by default.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.