
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
我是使用的maven来管理这些包的,我查了,pom.xml文件中有对应的<dependency><groupId>org.springframework</groupId...
我是使用的maven来管理这些包的,我查了,pom.xml文件中有对应的
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.0.1.RELEASE</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
而且对应的的项目目录下有org.springframework.web.context.ContextLoaderListener.class
这个class类。 展开
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.0.1.RELEASE</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
而且对应的的项目目录下有org.springframework.web.context.ContextLoaderListener.class
这个class类。 展开
2个回答
展开全部
这个应该是你Maven Dependencies里面的jar只是引用到项目,部署没有一起部署上去!解决方法可以:选择你的项目,右键->Properties->Java EE Module Dependencies ,在Maven Dependencies的jar库前面打勾确定,你再试试
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询