Setting property 'source' to 'org.eclipse.jst.jee.server:web' did not find a matching property原因

來源:互聯網
上載者:User

標籤:

這個問題困擾了好久,雖然只是tomcat的一個警告,但強迫症讓我總覺得不舒服,搜尋了好多文章才找到知乎上一篇處理的最好的。另外:能找穀哥,盡量不要度娘,太浪費時間。

具體操作如下:

預設情況下,server.xml的 Context元素不支援名稱為source的屬性,就出現該警告

雙擊eclipse下tomcat伺服器,在出來的Tomcat server at localhost頁面中找到
server options選項,選中其中的選項”Publish modual contexts to separat XML
files“,ctr+s,啟動tomcat.

Tomcat 7.0不適用以上方法,應該用以下方法解決:

關閉tomcat,將Context的source屬性去掉,然後將docBase屬性指向預設的

wtpwebapps目錄下對應的項目,暫未發現有什麼問題。
如:<Context docBase="../wtpwebapps/sss" path="/" reloadable="true" />

下面是知乎原作者及原地址
有銘
連結:https://www.zhihu.com/question/22298367/answer/30704992
來源:知乎
著作權歸作者所有,轉載請聯絡作者獲得授權。

Setting property 'source' to 'org.eclipse.jst.jee.server:web' did not find a matching property原因

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.