After Eclipse-ee starts Tomcat, the browser cannot access Tomat and the Web Project Service is deployed.

Source: Internet
Author: User
Environment: Ubuntu14.04 + Eclipse-ee + Tomcat7 problem: the Tomcat 7 is selected when the Server is created in Eclipse, and the Tomcat directory installed by yourself when the Server is selected during running. Then start the Server. leletomcat can be started normally in eclipse, but http: // localhost: 8080/cannot be accessed in the browser, and Error 404 is reported. Besides, Ecl

Environment:

Ubuntu 14.04 + Eclipse-ee + Tomcat7

Problem:

Tomcat 7 selected when the Server is created in Eclipse, and Tomcat directory installed by yourself when the Server is run. Then start the Server. leletomcat can be started normally in eclipse, but http: // localhost: 8080/cannot be accessed in the browser, and Error 404 is reported. In addition, Web projects in Eclipse cannot be accessed. If you manually start startup. bat in the tomcat installation directory, you can access the tomcat Management page by accessing htt: // localhost: 8080.

Cause analysis:

Because the "Server Locations" option is configured by default when you create a Server in Eclipse, that is, "Use workspace metadata (does not modify tomcat installation ), this means that the Server does not change the TOMCAT installation and deployment directory, but uses the TOMCAT configuration directory that comes with Eclipse. Therefore, after tomcat is started in Eclipse, the Web project will not be deployed and cannot be accessed.

Solution:


1. Stop Tomcat Server in Eclipse

2. Remove the project deployed on the Server

3. Right-click "Server Tomcat 7" (my server name is Server Tomcat 7) and select "clean"

4. Open "Server Tomcat 7" and select "Use Tomcat Installation" in the "Server Locations" option"

5. Start "Server Tomcat 7" in Eclipse to verify whether it is successful.

Apache Tomcat Security Manager Bypass Vulnerability (CVE-2014-7810) http://www.linuxidc.com/Linux/2015-05/117604.htm

RedHat Linux 5.5 install JDK + Tomcat and deploy Java project http://www.linuxidc.com/Linux/2015-02/113528.htm

Tomcat authoritative guide (second edition) (Chinese and English PDF + with bookmarks) http://www.linuxidc.com/Linux/2015-02/113062.htm

Tomcat secure configuration and performance optimization http://www.linuxidc.com/Linux/2015-02/113060.htm

Linux using Xshell view Tomcat real-time log Chinese garbled solution http://www.linuxidc.com/Linux/2015-01/112395.htm

CentOS 64-bit install JDK and Tomcat and set Tomcat boot operation steps http://www.linuxidc.com/Linux/2015-01/111485.htm

Install Tomcat http://www.linuxidc.com/Linux/2015-01/111415.htm in CentOS 6.5

Tomcat details: Click here
Tomcat: Click here

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-05/117850.htm

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.