1.Eclipse EE Configuration Tomcat
Eclipse EE is primarily used for Java Web Development and EE project development. Configuring Tomcat in Eclipse EE is simple, and you can create a new Tomcat server with the following steps:
1.1. Open the Servers view
Open the Servers view from the menu Window->show view->servers.
1.2. Create a new Tomcat server
Right-click an empty area, select new->server (for environments without any server, click the "New Server Wizard" link), then select the Tomcat server in the list, select the native Tomcat directory, Click Done. To this, Eclipse EE configures Tomcat to succeed.
2.Eclipse SE Configuration Tomcat
Eclipse SE is primarily used for the development of console programs, if Web development is recommended for use with Eclipse EE. Of course, Eclipse SE can also configure Tomcat, as follows:
2.1. Download the Tomcat plugin
: http://www.eclipsetotale.com/tomcatPlugin.html, when downloading, please check the Eclipse version and the Tomcat version, now basically can use the latest version of the Tomcat plug-in V3.3, can be through the HTTP ://www.eclipsetotale.com/tomcatplugin/tomcatpluginv33.zip direct download.
PS: is tomcat plugin, not Tomcat, two different
2.2. Installing the Tomcat Plugin
Unzip the Tomcat plugin and copy it to the Eclipse directory under plugin, restart the Eclipse,tomcat plugin to install successfully.
2.3. Configuring the Tomcat Plugin
In Eclipse, click Window->preferences->tomcat, select the native Tomcat version number (download and unzip tomcat to local), select the Tomcat home directory, the directory where Tomcat resides.
After configuration, start Tomcat in Eclipse and enter in internal Web browser in eclipse: localhost:8080, if the Tomcat page appears, the Tomcat plug-in is configured successfully.
3. Tomcat start after opening page prompt 404 error Resolution
Eclipse configures and starts Tomcat success, but sometimes accesses localhost:8080 with a 404 error, and the Tomcat configuration needs to be modified at this time. The steps are as follows:
- Double-click Tomcat Server in Eclipse to open the Tomcat configuration page.
- Modify the server locations for use Tomcat installation.
- Modify the Deploy path to WebApps.
- Save the configuration.
PS: If you cannot modify the configuration, remove Tomcat from the server and add it again to configure it.
How to configure Tomcat in Eclipse