Eclipse use: Install the Tomcat plugin and deploy the Web project using the Tomcat plugin __web

Source: Internet
Author: User
Tags tomcat

1. Download Tomcat plugin

Download Address: The Http://www.eclipsetotale.com/tomcatPlugin.html,tomcat plugin version is best to correspond to the Eclipse version, or there will be an issue that cannot be installed.


2, install the plug-in

Unzip the downloaded package into the plugins directory of the Eclipse directory


Restart Eclipse, the Tomcat icon appears in the toolbar above the Eclipse interface


The first icon is: Start

The second icon is: stop

The third icon is: Restart 3, configure Tomcat

Click on the menu bar above eclipse: Window, Preferences


Set the Tomcat root in the Tomcat home and set the Tomcat-initiated JVM parameters in the JVM settings

4. Deployment Project
Selected items, right-click Properties, as shown below


Modify only 3 red box places

"is a tomcat project": Use this project as one of the Tomcat projects

"Context name": The root path of the access address

"Subdirectory to set as Web application root": Web project root directory, if WebRoot write "/webroot", if WebContent write "/webcontent"

Click OK

Re-select project, right-click Tomcat Project--Update context definition to generate a testpro.xml file in the Tomcat directory, Conf/catalina/localhost directory


Open Testpro.xml, delete the value of Workdir

Finally click the Tomcat Launcher icon on the toolbar to start the Success 5, delete the deployed project

Selected items, right-click the Tomcat project, remove context definition, delete the Testpro.xml file under the Conf\catalina\localhost directory of the Tomcat directory

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.