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文件。需要加后缀。
登陆 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文件。需要加后缀。
相关文章推荐
- Tomcat 404 error: The origin server did not find a current representation for the target resource or
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.报该错误的一种原因。
- IDEA的javaweb项目的 The origin server did not find a current representation for the target resource
- The origin server did not find a current representation for the target resource or is not willing...
- The origin server did not find a current representation for the target resource or is not willing to
- The origin server did not find a current representation for the target resource or is not willing..
- 开发java web报错:The origin server did not find a current representation for the target resource or is n
- The origin server did not find a current representation for the target resource or is not willing to
- 关于The origin server did not find a current representation for the target resource …………
- Java Web 学习笔记 The origin server did not find a current representation for the target resource or is
- Web开发:关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题
- The origin server did not find a current representation for the target resource or is not willing to
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
- The origin server did not find a current representation for the target resource or is not willing to
- The origin server did not find a current representation for the target resource or is not willing to
- 用eclipse javaEE编程时,不管什么程序都会出现这个错误[SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:bookstore' did not find
- Eclipse git 错误:The current branch is not configured for pull
- eclipse启动tomcat出现警告:Setting property 'source' to 'org.eclipse.jst.jee.server:工程名' did not find a matching property
- 错误提示为: Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
- [Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 0 bytes.