Eclipse 4.4 + Tomcat 7

Source: Internet
Author: User
Tags tomcat server

Environment: Windows7 32, the Java environment is configured

One. Eclipse installation

    1. On the Eclipse website (http://www.eclipse.org/downloads/), download the Eclipse version for Web develop Eclipse-jee-kepler-sr2-win32.zip

Decompression to E:\software\eclipse;

Two. Tomcat installation

    1. On the Tomcat website (http://tomcat.apache.org/download-70.cgi) Download the Apache-tomcat-7.0.52-windows-x86.zip and unzip to E:\software\ apache-tomcat-7.0.52
    2. Set environment variables: New system variables, environment variables, advanced system settings, properties, computers, and so on (Tomcat_home, E:\software\apache-tomcat-7.0.52)

Three. Eclipse Integrated Tomcat

    1. Download Tomcatpluginv33.zip (http://www.eclipsetotale.com/tomcatPlugin.html);
    2. Unzip the above compressed package into Eclipse's Dropins directory (E:\software\eclipse\dropins);
    3. Opening eclipse, three kitten-like icons indicate a preliminary success.
    4. Open Eclipse,windows->preferences->tomcat, select the installed Tomcat version (tomcat7.0), and set the Tomcat installation location (E:\software\ apache-tomcat-7.0.52), and set to Server.xml.
    5. Create a new server,new->server->tomcat v7.0 (select server type)->next;
    6. This is basically done and can be used.

Problems that may occur during use:

1. Unable to create a new Tomcat 7.0 server at new server

WORKAROUND: Reconfigure the tomcat environment, eclipse-windows->preferences->server->runtime environment, Set the TOMCAT7 installation path to the path of the TOMCAT7 that you installed.

2. Unable to access http://localhost:8080/and its own new project

Workaround:

Reconfigure the following Tomcat server:

On the server page in Eclipse, double-click the Tomcat service to see the configuration page:

You can see that the red circle is selected with the Use workspace metadata (does not modify Tomcat installion)

If a project is deployed in this tomcat, the options in the red circle will be grayed out and cannot be modified, and the modifications must first be removed from the deployed service in Tomcat.

By right-clicking the Tomcat server, select Add and remove to remove the deployed project in the popup dialog box. When you are finished removing the OK, you will see the Options Panel section above editable.

Select the Use Tomcat installation (Task control of Tomcat installation) to select Tomcat's installation directory as the publishing directory for the project.

Then, down four lines, see "Deploy Path"? The value behind it defaults to "Wtpwebapps", which is changed to "WebApps", which is Tomcat

The name of the folder in which the item is published. After modification, turn off the page and save the configuration. This deploys the project to the WebApp in the Tomcat installation directory

Restart the Tomcat server, access to the http://localhost:8080 will be able to access the normal, your own deployment of the project is also able to access.

3. You do not want to use Eclipse's built-in browser to access pages with your own browser.

Workaround: Eclipse->windows->preferences->general->web broswer, set to external IE browser or other.

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.