1. 程式人生 > >update maven後Eclipse報錯:java.lang.ClassNotFoundException: ContextLoaderL

update maven後Eclipse報錯:java.lang.ClassNotFoundException: ContextLoaderL

found trie dex div plugins finish lang 生成 ext

出錯:Maven項目下update maven後Eclipse報錯:java.lang.ClassNotFoundException: ContextLoaderL

解決方案:

1.右鍵點擊項目--選擇Properties

選擇Deployment Assembly,在右邊點擊Add按鈕,在彈出的窗口中選擇Java Build Path Entries

2.點擊Next,選擇Maven Dependencies

3.點擊Finish,然後可以看到已經把Maven Dependencies添加到Web應用結構中了

操作完後,重新部署工程,不再報錯了。然後我們再到.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\目錄下,發現工程WEB-INF目錄下自動生成了lib目錄,並且所有的依賴jar包也都已經部署進來。問題因此解決。

update maven後Eclipse報錯:java.lang.ClassNotFoundException: ContextLoaderL