java - Tomcat 配置正常,但是访问路径时报错404
ringa_lee
ringa_lee 2017-04-18 10:33:49
0
4
982

Tomcat 的server.xml 配置正常,但是访问webapps 下项目路径时却报错The Request Url was not found the server ,请问这种问题如何解决处理,Java小白求助!

ringa_lee
ringa_lee

ringa_lee

reply all(4)
刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template