tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Help with Tomcat Automatic Application Deployment
Date Fri, 11 May 2018 16:44:42 GMT
On 08/05/18 19:07, sri devops wrote:
>  Hello Team,
> 
> Currently I have apache-tomcat-8.5.23 installed and running on
> RHEL7.x86_64. I have a war deployed and application is running under
> tomcat. While application is running, if i make any manual changes to some
> config files [ context.xml or server.xml or web.xml] and noticed Tomcat is
> restarting application even though I haven't called tomcat service start
> script.

Changes to server.xml do not trigger web application reload or redeploy.
Neither does it trigger a Tomcat restart.

Changes to web.xml trigger a web application reload because of the
default watched resources (see CATALINA_BASE/conf/context.xml) and
because autoDeploy is true by default.

Changes to context.xml will trigger a web application redeploy because
autoDeploy is true by default.


> My intention is,
> 1) At first when there's initial war deployed and tomcat service start
> script is called, tomcat should extract war and app should work
> 2) Second, While tomcat is in running state and application is running and
> if i make any manual changes to any tomcat config file, I do not want
> application to auto magically restart.
> 
> *my server.xml looks as below*
> 
> <Host name="localhost" appBase-"webapps"
>            unpackWARs="true" autoDeploy="true">
> 
> 
> I also looked at your docs and researched online, but unclear on these
> parameters what to use when. [ setting autoDeploy=false (or) having
> deployIgnore attribute somewhere ?]

Set autoDeploy to false.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message