Home  >  Q&A  >  body text

java - Tomcat 配置正常,但是访问路径时报错404

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

ringa_leeringa_lee2742 days ago926

reply all(4)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:35:49

    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.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:35:49

    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

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 10:35:49

    Will there be any abnormalities if I just start Tomcat? Has the project been deployed?

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 10:35:49

    Is your path configured correctly? 404 is easy to solve

    reply
    0
  • Cancelreply