ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
来源:互联网 发布:seo的工资 编辑:程序博客网 时间:2024/06/09 08:29
问题背景:
工程为maven工程,ContextLoaderListener类位于spring-web-3.1.0.RELEASE.jar包中。检查了maven的pom.xml,依赖引入正常。在工程Maven Dependencies视图中也能看到spring-web-3.1.0.RELEASE.jar包被正常引入进来了。
错误原因:
进入到tomcat的部署路径.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\下检查了一下,发现工程部署后在WEB-INF文件夹下没有生成lib目录,正常情况下,会生成lib目录并把工程的所有依赖jar包都部署到该目录下。
解决方案:
1.右键点击项目--选择Properties
选择Deployment Assembly,在右边点击Add按钮,在弹出的窗口中选择Java Build Path Entries。如下图所示:
2.点击Next,选择Maven Dependencies
3.点击Finish,然后可以看到已经把Maven Dependencies添加到Web应用结构中了
操作完后,重新部署工程,不再报错了。然后我们再到.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\目录下,发现工程WEB-INF目录下自动生成了lib目录,并且所有的依赖jar包也都已经部署进来。问题因此解决。
转载:http://chenzhou123520.iteye.com/blog/1836987
阅读全文
0 0
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [SpringMVC]ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [ssh]ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException : org.springframework.web.context.ContextLoaderListener 处理
- 解决ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener解决办法
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 问题原因。
- 关于java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- mysql 创建索引和删除索引
- JavaBean
- 从零开始理解JAVA事件处理机制(3)
- Network 【常用协议端口号】
- 在release版本禁止输出NSLog内容
- ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 调用系统相册和相机
- 十分钟教程,eclipse配置maven + 创建maven项目
- 打印1到最大的n位数
- Android Studio 导入项目时遇到sdk location not found错误,如何解决
- 关于魅族(魅蓝)手机Toast无法显示原因的解决办法是?
- CSS样式设置小技巧
- 设计模式之结构型-代理模式(8)
- Android 工具类