Is a new .war file uploaded to the webapps directory supposed to force tomcat restart?
772
I am putting together a new build environment and when I upload a new .war file, Tomcat does not seem to be unwrapping it into a directory structure, or restarting.
Does there have to be some setting that needs to be set for this? I am using ubuntu
To get the autodeploy behavior, you'll want to find the <Host> block in your Tomcat config, and make sure the following is part of it: unpackWARs="true" autoDeploy="true"
As long as those are set, it should automatically explode the .war file. Keep in mind that this only applies to .war files placed in the webapps directory.
A service restart is not necessary for a redeploy, so you should not expect to see the Tomcat service restart itself.
To get the autodeploy behavior, you'll want to find the
<Host>
block in your Tomcat config, and make sure the following is part of it:unpackWARs="true" autoDeploy="true"
As long as those are set, it should automatically explode the .war file. Keep in mind that this only applies to .war files placed in the webapps directory.
A service restart is not necessary for a redeploy, so you should not expect to see the Tomcat service restart itself.