On 8/2/24 2:30 AM, Channa Puchakayala wrote:
Issue : Apache Tomcat deploying war file for every restart on Red Hat Linux
8.6 even though there are no changes in war file.
Look in your conf/server.xml file. Scroll down to the "<Host" tag.
The default is:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
If you need to suppress redeployment of WAR files, you need to change it to
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false">
I speak from experience: in order to function, our webapp requires its
configuration files to be customized for *every* installation, and with
the default of autoDeploy="true", those customizations get overwritten
every time Tomcat is launched, rendering the webapp completely afunctional.
Honestly, I've never understood why the default is the way it is.
Of course, if you've already set autoDeploy to false, and it's still
redeploying with every Tomcat start, then the problem is something else.
--
James H. H. Lampert
Touchtone Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org