About the hot deployment and hot load of Tomcat 6

Source: Internet
Author: User

Reprint: http://blog.csdn.net/tianlincao/article/details/7263840

Before each modification of the class file, after saving Tomcat will need to automatically restart, today after the set up, can support the hot deployment, and online information is diametrically opposed!

My environment:

Eclipse version 3.4, set to auto-compile by default (Project-biuld automatically hook)

Tomcat version 6.0, server.xml settings are as follows:

[HTML]View Plaincopy
  1. <host appbase= "WebApps"  autodeploy= "true"  name= "localhost"   Unpackwars= "true"  xmlnamespaceaware=" false " xmlvalidation=" false ">  
  2. <Context docbase="Cpcweb" path="/cpcweb" reloadable="true" source=" Org.eclipse.jst.j2ee.server:CPCWeb "/></Host>



You can see the Host tag and the context tag

Autodeploy= "true"----automatic deployment
Reloadable= "true"----automatically loaded

Now I have both values set to False, that is, the modified configuration is as follows:

[HTML]View Plaincopy
  1. <Host appbase="WebApps" autodeploy= "false" name="localhost" unpackwars=" True " xmlnamespaceaware=" false " xmlvalidation=" false ">
  2. <Context docbase="Cpcweb" path="/cpcweb" reloadable= "false" source=" Org.eclipse.jst.j2ee.server:CPCWeb "/></Host>



Reboot tomcat, support automatic loading of classes, Tomcat does not restart, console print less, the world is finally quiet ...

About the hot deployment and hot load of Tomcat 6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.