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

来源:互联网 发布:linux swap分区 编辑:程序博客网 时间:2024/06/06 00:51

在服务器上配置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包名。

0 0
原创粉丝点击