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

Tomcat服务器The origin server did not find a current representation for the target resource错误

2017-11-24 18:17 633 查看
调试程序 服务器 出现 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.  错误

登陆 localhost:8080 依旧 同样错误 

将 服务器 从eclipse 删掉 添加新的服务器 双击 

server locations 可选,勾选中间一个。  

如果还有错误 *********************************

********************************************

2.检查jsp文件 

WEB-INF文件下的 jsp文件用户是不能直接访问到的。好像是受保护的。

因此把jsp文件 挪到  WebContent文件下即可了。

正确做法是放在 WebContent 文件夹下面。

若把jsp 文件 放到 WebContent 下面的文件夹里面 。

访问路径为: localhost:8080 / 你的项目名称 / 你的放jsp的文件夹/jsp文件名称.jsp 

如:http://localhost:8080/JSTLTest/jsp/JSTLTest.jsp 

第一个JSTLTest 为项目名称,jsp 为 WebContent 下面的 文件夹,专门存放 jsp文件的。 然后 第二个 JSTLTest为jsp文件。需要加后缀。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐