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

后端 未结 30 1364
南旧
南旧 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:37

    I faced the same problem.

    Just removed the server from configuration and added it back after restarting eclipse by adding it to the server runtime environment.

    0 讨论(0)
  • 2020-11-22 17:38

    In many case It is java facet problem ,jdk or jre or jsp version is difference than maven project face.

    0 讨论(0)
  • 2020-11-22 17:39

    You could try "Clean Tomcat Work Directory" or simply "Clean..". This supposed to discard all published state and republish from scratch.

    0 讨论(0)
  • 2020-11-22 17:39

    Put <packaging>war</packaging> in your pom.xml if you are using Maven. In that case, maybe it is with jar packaging

    You must have Maven libs in Deployment Assembly

    0 讨论(0)
  • 2020-11-22 17:39

    This works for me ..

    Right Click on maven web project Click 'Properties'menu Select 'Deployment Assembly' in left side of the popped window Click 'Add...' Button in right side of the popped up window Now appear one more popup window(New Assembly Directivies) Click 'Java Build path entries' Click 'Next' Button Click 'Finish' Button, now atomatically close New Assemby Directivies popup window Now click 'Apply' Button and Ok Button Run your webapplication

    0 讨论(0)
  • 2020-11-22 17:40

    I got this when I had the lib in my build path, but not in my deployment assembly. Also when I had a missing context.xml.

    0 讨论(0)
提交回复
热议问题