How to configure Tomcat in eclipse

Source: Internet
Author: User

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:

    1. Double-click Tomcat Server in Eclipse to open the Tomcat configuration page.
    2. Modify the server locations for use Tomcat installation.
    3. Modify the Deploy path to WebApps.
    4. 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

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.