java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

后端 未结 30 1679
南旧
南旧 2020-11-22 16:58

I included these in the Build Path:

  • all Spring libs
  • Apache Tomcat 7.0 library

The project still fails during startup:

30条回答
  •  礼貌的吻别
    2020-11-22 17:36

    Same thing happens to me from time to time when using Eclipse WDT. Its specialy frustrating when this happens to a unmodified and previously working project. This is what I do to fix it in this last scenario:

    1. Stop Tomcat (if it's running)
    2. Open the "Servers" view: Window > Show view > Other > Server > Servers
    3. Right Click on Tomcat Server > Clean Tomcat Work Directory.
    4. Right Click on Tomcat Server > Clean
    5. Restart the server

    This usually fixes the issue you mention.

提交回复
热议问题