First of all, there is basically no need to manually edit Tomcat’s server.xml file during the normal development process. The general process of developing a Web project is: 1. Deploy Tomcat (download and decompress the Tomcat compressed package from the Apache official website), enter the bin directory and double-click startup.bat to start Tomcat, visit http://localhost:8080 to confirm whether the Tomcat test page is normal; 2 , Configure the Server Runtime Environment on Eclipse, and add the deployment path of Tomcat; 3. Create a new server on Eclipse, start Tomcat without adding a project, and confirm that the test page access is normal; 4. Add the project and access the project URL link, if a 404 error occurs at this time, it is a project deployment or development problem. On the contrary, it is a Tomcat problem.
You have to use the elimination method to test and see if http://localhost:8080 responds. If not, you have to check whether an error is reported during startup. If no error is reported, check your webAPPs to see if it is published to this location. If it is still there, If you have any questions, I suggest you change to a new tomcat in order to learn during the development stage
First of all, there is basically no need to manually edit Tomcat’s server.xml file during the normal development process. The general process of developing a Web project is:
1. Deploy Tomcat (download and decompress the Tomcat compressed package from the Apache official website), enter the bin directory and double-click startup.bat to start Tomcat, visit http://localhost:8080 to confirm whether the Tomcat test page is normal;
2 , Configure the Server Runtime Environment on Eclipse, and add the deployment path of Tomcat;
3. Create a new server on Eclipse, start Tomcat without adding a project, and confirm that the test page access is normal;
4. Add the project and access the project URL link, if a 404 error occurs at this time, it is a project deployment or development problem. On the contrary, it is a Tomcat problem.
You have to use the elimination method to test and see if http://localhost:8080 responds. If not, you have to check whether an error is reported during startup. If no error is reported, check your webAPPs to see if it is published to this location. If it is still there, If you have any questions, I suggest you change to a new tomcat in order to learn during the development stage
Will there be any abnormalities if I just start Tomcat? Has the project been deployed?
Is your path configured correctly? 404 is easy to solve