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
unpackWARstotrueallows Tomcat to unzip your WAR file to a directory structure. - Setting
autoDeploytotrueallows Tomcat to auto deploy your web application if it detects a WAR file deployed in Tomcat.
Hope this helps!
加载中,请稍侯......
精彩评论