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?