To fix the Server.xml configuration file that modifies Tomcat in development, does eclipse automatically restore problems in some cases? __eclipse

Source: Internet
Author: User
Tags tomcat server

When we develop the Server.xml and content.xml files that are sometimes required to be modified under Tomcat, the file is often restored.

The reason is that when you integrate add Tomcat in Eclipse, Eclipse automatically stores the Tomcat profile, and
when the Tomcat server starts in eclipse, it overwrites its own stored Tomcat profile from the original Tomcat configuration file.

The two solutions are as follows:

Mode one:

Set Ecplise, cancel out of automatic publishing function
ecplise select window-preferences-server-launching 
Cancel automatically publish Wen starting Servers 
Click OK to complete

Mode two

One of the server projects in the Ecplise project
has a Tomcat v7.0 server at Localhost-config, which
also has server.xml and content.xml directly modifying the files
inside it. When Tomcat is republished, it will overwrite the files under Tomcat with the configuration file.

Note: I am a tomcat 7.0  , everyone's probably a different version, the same way

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.