1. 程式人生 > 程式設計 >關於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...的問題

寫在前面

“The origin server did not find a current representation for the target resource or is not willing todisclose 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...的問題

這是我知道的一些問題,不夠全面,但是希望能幫助到一些人。

到此這篇關於關於Tomcat出現The origin server did not find a current representation for the target resourc...的問題的文章就介紹到這了,更多相關Tomcat 報錯內容請搜尋我們以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援我們!