1. Download Tomcat plugin Com.sysdeo.eclipse.tomcat_3.3.1.jar
Download Path http://www.eclipsetotale.com/
2, install the plug-in
Put the downloaded plugin under E:\App\1.2eclipse-jee-mars-R-win32-x86_64\eclipse\dropins, eclipse3.* after Dropins, before the Plusins
3. Open Eclipse
The Tomcat-related icon appears on the toolbar after Eclipse is turned on, but cannot be used, prompting "Tomcat Prefereces" for not configuring the error.
4. Configure the Tomcat prefereces for Eclipse.
1) Windows->prefereces->tomcat, make the relevant configuration
1.1) Select Tomcat version for version 7.x;//my eclipse version:mars Release (4.5.0) Build id:20150621-1200, in Eclipse help-> About Eclipse
1.2) Tomcat Home:e:\app\2.1apache-tomcat-8.0.30//tomcat's home directory
1.3) Select Context Declaration mode:context files
1.4) Context files:e:\app\2.1apache-tomcat-8.0.30\conf\catalina\localhost//Auto-generated after selecting 4, can be adjusted according to actual needs, here is the general default.
1.5) Application
2) Select advance to configure the relevant
2.1) Tomcae base:e:\app\2.1apache-tomcat-8.0.30//tomcat's home directory
2.2) Select "Launch Tomcat using Security Manager".
2.3) Add Java projects to Tomcat classpath, select Apply related folders.
2.4) application.
3) Select source path and tick "Automatically compute source path".
4) Select the Tomcat Manage app for configuration
4.1) Set Manageapp Url,http://<servername>:8888/manager//default http://localhost/8080/manage, adjust according to the actual configuration.
4.2) Manageapp Username:manager
4.3) Manageapp Password:manager
4.4) Click "Add User to Tomcat-users.xml"
4.5) Apply, close the configuration window.
5) Adjust the configuration of the 4th step.
5.1) Open "E:\App\2.1apache-tomcat-8.0.30\conf\tomcat-users.xml"//Adjust according to Tomcat's installation directory
5.2) <role rolename= "Manager-gui"/>
<user username= "Manager" password= "manager" roles= "Manager-gui"/>
5.3) Open the Tomcat test configuration
5.3.1) Open the Tomcat Administration page, http://<ServerName>:8888
5.3.2) Click "Manager" and enter the username and password previously set to log in.
5.3.3) Log in successfully, conduct relevant tests, and if there are errors, look back to the relevant process.
Ways to join the Tomcat plugin into eclipse