关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

作者:BoCong-Deng 时间:2023-03-03 18:02:43 

写在前面

“The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.”,在web开发的过程中,看到这一段错误提示,不管是在入门阶段还是已经是web老手都会感到很头痛。我也是在使用JSTL库的过程中,出现了这个问题,困扰了我很长时间才搞定的,所以决定有必要写一篇博客,碰到这个问题真的非常令人头痛,我这里解决了之后,就想着总结一下各种解决方法,希望能给还在苦海的朋友一些帮助,还是挺有用的。动动手指头,点个关注和点个赞,不胜感激

问题一(也是我碰到的问题)

我在web开发中,为了配置JSTL库改动了web.xml,手残不小心把文件的部署路径写错了,所以导致了出现这个问题,这还是我自己看了eclipse的console出错信息才发现的,所以console的出错信息还是很有用的

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

问题二

试一试调节Project的 Build,如图勾选:

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

问题三

双击Tomcat,进入调节,当然双击前必须先移除Tomcat Server中的项目,这样才可以更改其中的设置,如图:

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

问题四

一定要注意路径是否有错误,这个是很愚蠢的问题。

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

问题五

xml的版本问题,在Eclipse编译器中右键项目—>Properties—>Project Facets—>Dynamic Web Module 如图:

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

问题六

检查文件是否有加载至Tomcat下的webapps目录下

关于Tomcat出现The origin server did not find a current representation for the target resourc...的问题

这是我知道的一些问题,不够全面,但是希望能帮助到一些人。

来源:https://blog.csdn.net/dbc_121/article/details/79204340

标签:Tomcat,报错
0
投稿

猜你喜欢

  • 项目为什么引入log4j而不是logback代码

    2023-02-02 07:51:07
  • android 仿微信demo——微信消息界面实现(服务端)

    2022-09-22 03:48:16
  • C#中Winform窗体Form的关闭按钮变灰色的方法

    2023-06-06 09:11:34
  • Unity 实现鼠标滑过UI时触发动画的操作

    2021-05-31 19:24:18
  • Java事件监听机制讲解

    2022-09-18 00:41:11
  • 浅析Disruptor高性能线程消息传递并发框架

    2023-02-26 14:09:01
  • Spring中@Scheduled和HttpClient的连环坑

    2023-10-19 23:06:00
  • 深入理解Spring Boot的日志管理

    2021-11-16 09:58:40
  • 基于Java手写一个好用的FTP操作工具类

    2021-06-05 20:10:18
  • mybatis中查询结果为空时不同返回类型对应返回值问题

    2023-02-15 10:50:31
  • 使用Postman传递arraylist数据给springboot方式

    2022-08-27 01:13:01
  • maven的pom.xml中profiles的作用详解

    2022-07-03 20:40:54
  • WPF中使用WebView2控件的方法及常见问题

    2023-10-02 18:23:28
  • Android使用Gallery实现照片拖动的特效

    2022-12-31 23:04:22
  • Java如何实现http接口参数和返回值加密

    2023-08-23 12:28:37
  • C#中的虚函数virtual

    2023-09-07 13:49:53
  • Android开启新线程实现电子广告牌项目

    2023-02-10 20:47:10
  • Android Handler之消息循环的深入解析

    2022-02-10 20:08:45
  • 详解Lombok安装及Spring Boot集成Lombok

    2023-11-28 23:39:55
  • Java正确使用访问修饰符的姿势

    2021-10-11 09:52:50
  • asp之家 软件编程 m.aspxhome.com