开发者

Is a new .war file uploaded to the webapps directory supposed to force tomcat restart?

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 ha开发者_StackOverflow中文版ve to be some setting that needs to be set for this? I am using ubuntu.

Thanks, Alex


Yes, on TOMCAT_HOME/conf, there's server.xml. Look for the following:

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
  • Setting unpackWARs to true allows Tomcat to unzip your WAR file to a directory structure.
  • Setting autoDeploy to true allows Tomcat to auto deploy your web application if it detects a WAR file deployed in Tomcat.

Hope this helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜