原始服务器未找到目标资源的当前表示形式,或者在运行jsp页面时没有...错误 [英] The origin server did not find a current representation for the target resource or is not ... error when running jsp page

查看:318
本文介绍了原始服务器未找到目标资源的当前表示形式,或者在运行jsp页面时没有...错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Eclipse JSP动态网页中运行此代码.但是在Tomcat服务器9.0版中运行它时,我收到一条错误404消息.错误消息-原始服务器找不到目标资源的当前表示,或不愿意透露该资源的存在.我试图在此代码的其他jsp页面中包含标题页.

I am trying to run this code in my Eclipse JSP dynamic web page. But on running it in the Tomcat Server Version 9.0, I am getting an error 404 message. Error Message-The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. I was trying to include a header page in my other jsp page in this code.

到目前为止,我已经尝试通过服务器属性切换服务器的位置.我还检查了服务器位置"中的使用Tomcat安装"复选框.不过,我仍然收到此错误.

So far I have tried switching the location of the server via server properties. I have also checked the Use Tomcat installation checkbox in Server Locations. Still, I am getting this error.

  <!DOCTYPE html>
  <html>
  <head>
  <title>Insert title here</title>
  </head>
  <body>
  <jsp:forward page="http://localhost:8080/HelloJSP/HeaderPage.jsp" /> 
  </body>
  </html>

推荐答案

感谢您的帮助:) 实际上,一旦我从eclipse中删除了所有服务器并将其关闭,就可以解决此问题.然后,我再次读取了服务器,它开始工作.仍然无法找到导致此错误的原因,但已使用上述方法解决了该问题.

Thank You for your help :) Actually, this problem was solved once I removed all the server from eclipse and switched it off. Then I readded the sever once again and it started working. Still not able to find the reason this error was caused but it was fixed by using the above method.

这篇关于原始服务器未找到目标资源的当前表示形式,或者在运行jsp页面时没有...错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆