Eclipse Jee integrates with Tomcat, and the eclipse version is the Eclipse-jee-galileo-win32,tomcat version is 6.0. The two software downloads themselves separately. The specific integration steps are as follows:
1, download Sysdeo Tomcat plugin plug-in (Tomcatpluginv321.zip), unzip the file, copy com.sysdeo.eclipse.tomcat_3.2.1 to Eclipse-jee\plugins, (Note: Tomcat6.0 The above version, rename the Devloader.zip to Devloader.jar, then copy it to the Tomcat directory Lib) and then restart Eclipse.
2. After restarting Eclipse, in Window-prdferences-tomcat, the Tomcat directory is set, such as:
After the configuration is complete, there will be more Tomcat startup and stop icons on eclipse, such as:
Project release Tomcat is available in two ways, one through the context and one through Server.xml.
The first type:
The context configuration is as follows:
Tomcat under \conf\catalina\localhost\ in Root.xml (without the file, create a new one), write the following information:
<context docbase= "E:\workspace\ssh\WebRoot" path= "" reloadable= "false"/>
DOCBASE specifies the absolute path of the project to be published, pointing to the Webroot layer.
The second type:
The Server.xml configuration is as follows:
Eclipse JEE Tomcat integration combined with Project deployment