开发者

HTTP 404 the requested resource can not be found [duplicate]

开发者 https://www.devze.com 2023-03-02 12:52 出处:网络
This question already has answers here: Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available"
This question already has answers here: Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available" (19 answers) Closed 6 years ago.

I am getting HTTP 404 the requested resource can not be found.

I was executing my servlets comfortably a while ago. I compiled my last servle开发者_如何学Got and it compiled fine. Then I added it to my web.xml file and restarted my webserver and ever since I am getting the same error on all applets even the ones which were running fine earlier. I checked the web.xml file for errors but it seems OK.


I am getting HTTP 404 the requested resource can not be found.

This can have several causes:

  • URL is plain wrong. It has to match <url-pattern> of the servlet in web.xml.
  • Mapping in web.xml is plain wrong. Read the server startup log for details.
  • Servlet construction/initialization failed. Read the server startup log for details.
  • Webapp startup failed completely. Read the server startup log for details.
0

精彩评论

暂无评论...
验证码 换一张
取 消