Release web project in eclipse

Source: Internet
Author: User

1. Release the project to Tomcat: Method 1:
There is a conf directory under the tomcat installation directory, with a server. xml file, which is used to save the configuration file for publishing the project application. We only need to configure this file to release a specific project. In addition, there are other methods for release, such as publishing through war packages. This configuration server. the XML file method has the advantage of automatically loading the modified items in the project to the Web Container, and there is no need to re-release each time for loading.
The configuration method is as follows:
Add the web application configuration before the last <Context
Path = "/cahms"
Reloadable = "true"
Docbase = "E:/workspace/your_web_project/webcontent">

</Context>


Related Knowledge points:
(1) Use context as the keyword for configuration
(2) The path keyword indicates the project name, so that we can access our web project through http: // 127.0.0.1: 8080/cahms.
(3) The reloadable keyword indicates that the site can be automatically loaded'
(4) The docbase keyword specifies the location of the root directory of the site, that is, the root directory in our project.
Method 2:
Create an XML file with the same content as above. Path = "" can be removed. The file name is the project name corresponding to path, and put it in E: \ apache-Tomcat-6.0.20 \ conf \ Catalina \ localhost.
Method 3:
Create the project directory in the tomcat/webapps folder.

Related Article

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.