Why does the 404 appear in the browser after Tomcat is started in eclipse?

Source: Internet
Author: User

Problem Description:

After the Tomcat compression package is pressurized, start the startup.bat below the Lib folder, and the familiar interface appears after you enter http://localhost:8080/in the browser.

However, in Eclipse, JSP can run normally, but after entering http://localhost:8080/in the browser, there are 404 interface, search on the internet a lot.

Finally solved, a small problem to share.

To start the interface that Startup.bat appears:

In the browser, type: http://localhost:8080/

The following interface appears:

However, start Tomcat in the JSP and enter http://localhost:8080/in the browser to display the following interface:

Solution:

1. Delete the project that was deployed under this tomcat.

2. Reconfigure Tomcat.

3. Double-click the Red Circled section below.

The following interface is displayed after double-clicking:

This is done after the modification:

Summarize:

1. Use workspace metadata (does not modify TOMCAT installation).

2. Use the Tomcat installation (take control of Tomcat installation).

The first option represents the metadata path using the current workspace, which typically saves the output file to the workspace directory, and the second indicates that the output file is saved to the Tomcat installation directory.

Deploy Path: Represents the directory where the project was published: Change to WebApps.

Why does the 404 appear in the browser after Tomcat is started in eclipse?

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.