您的位置:首页 > 运维架构 > Tomcat

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

2017-04-09 23:02 591 查看
在服务器上配置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包名。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐