java.lang.NoClassDefFoundError: org/springframework/web/context/ContextCleanupListener issue

旧巷老猫 提交于 2019-12-06 02:21:05

The jar may be in your deployed folder, but is the jar (or your deployed folder with a wildcard) in the CLASSPATH?

try change dependency of spring-web to 3.0.5.RELEASE in your pom, you are currently have 2 version on classpath

<dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-web</artifactId>
  <version>3.0.5.RELEASE</version>
</dependency>

EnvironmentAware is located in the spring-context-3.1.1.RELEASE.jar, so you are missing that one.

Also recheck your Maven POM file so that you are not missing any other Spring library, like spring-web, spring-webmvc (you may have these since the DispatcherServlet class if found), spring-orm if you use an ORM like Hibernate, spring-jms if you use JMS, etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!