tomcat: The requested resource is not available.一种可能的原因

在服务器上配置java web项目时出现了以下错误:

HTTP Status 404 -/hellodemo4/WEB-INF/pages/index.jsp

type Status report

message /hellodemo4/WEB-INF/pages/index.jsp

description The requested resource is notavailable.


百度谷歌stackoverflow许久无果,后来发现原来是因为修改了war包的名字所致

原先项目的名字是hellodemo5.war,我为了调试,上传到服务器tomcat的webapps目录下时改成了hellodemo4.war,导致出现上述错误。改回名字后成功显示了页面。

解决方法:将war包名改回最初的war包名。


版权声明:本文为bu2_int原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。