警告: [SetPropertiesRule]{Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.


警告: [SetPropertiesRule]{Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.

 意思是:警告(SetPropertiesRule):裝載機} / {上下文設置屬性“useSystemClassLoaderAsParent”“假”沒有找到匹配的屬性

解決方法:

  • tomcat 6勾選"Publish module contexts to separate XML files"選項是OK的,但tomcat 7好像是不行。 我的解決辦法是直接把source屬性去了,然后將docBase屬性指向默認的wtpwebapps目錄下對應的項目,暫未發現有什么問題。 如:<Context docBase="../wtpwebapps/sss" path="/" reloadable="true" /> 希望對你有用。
  • source屬性在D:\軟件包\jee-neon\tomcat\conf\Catalina\localhost\web.project.xml里面
  • [Web.project].xml 刪除該xml文檔中的source="org.eclipse.jst.jee.server:dynweb-test"即可編譯通過。 如果同時還碰到錯誤 WARNING: [SetPropertiesRule]{Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property. 同樣刪除該xml文檔中的useSystemClassLoaderAsParent="false"即可編譯通過。 PS:這個配置檔該是eclips默認生成的,所以似乎每次重啟project后,這個配置文檔都會被重置,被刪除的內容會又出現了。需要再次手動刪除。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM