Tomcat运行Servlet,JSP页面请求转发报错解决方法
遇到开不开jsp页面,404报错:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
解决方法:
1.双击Tomcat服务器进入配置页面
Server Locations不可选,删除服务器,重新配置Tomcat。
2.检查jsp文件是否在WebContent目录下,如果在其他目录,剪切到WebContent目录下
3.检查Servlet逻辑代码,并且检查是否在web.xml下配置Servlet,如果未配置对应Servlet,则配置,如下图: