【BUG】java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
来源:互联网 发布:网络维修 杭州 编辑:程序博客网 时间:2024/06/05 15:34
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
使用 spring 框架开发的大家可能都碰到过这个问题,这里介绍一种常见的原因并提供解决办法。
字面意思,这个异常就是找不到 ContextLoaderListener 这个类,那么我们先去 Tomcat(或者其他部署的服务器)下面找到这个项目,看看这个项目有没有 lib 文件夹,文件夹下有没有与 spring 有关的 jar 包。
如果没有,那么恭喜你,你是符合这种情况的,那么下面就好解决了。
发生这种情况的原因是 Eclipse 并没有把这个项目依赖的类库与项目同时部署到服务器,绝大多数项目都是使用Maven对依赖类库进行统一管理的,那么我们把项目与Maven的依赖加上就可以了。
具体解决办法是:
项目右键,Properties > Deployment Assembly ,在右边的界面里 Add > Java Build Path Entries > Maven Dependencies > Finish > Apply > OK.
现在重新部署一次,你会发现项目可以正常开启了。
End .
0 0
- 【BUG】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
- 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
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- C++ strIcmp 字符串大小比较
- JS的匿名函数
- android中的color使用总结
- Customers Who Never Order
- 用MVC做WinForm客户端
- 【BUG】java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 设计师の学习网站
- jQuery插件---Validator Plugin
- 安卓图片显示的一些怪象
- 使用aardio(快手)编程
- CSRF Token介绍与应对策略
- javascript中的__proto__, prototype和constructor
- 定义变量var test与test的区别
- C 指和calendar联系后计算过的值