Maven項目Eclipse啟動時報錯: java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener


Eclipse中啟動Maven項目時報如下錯誤:

嚴重: Error configuring application listener of class org.springframework.web.util.IntrospectorCleanupListener  
java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener  
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)  
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)  
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)  
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)  
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)  
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4888)  
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
    at java.util.concurrent.FutureTask.run(Unknown Source)  
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
    at java.lang.Thread.run(Unknown Source) 

一般是項目的Maven Dependencies沒有添加到項目的編譯路徑下。

解決辦法:選中項目名稱右鍵 --> Properties --> Deployment Assemby --> Add --> Java Build Path Entries --> Finish --> Apply --> OK

添加完成之后如下圖所示:

 


免責聲明!

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



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