maven ClassNotFoundException: ContextLoaderListener
来源:互联网 发布:如何加强网络信息安全 编辑:程序博客网 时间:2024/05/20 01:47
今天整合SpringMVC与MyBatis,项目是通过Maven搭建的,在run as on server时,出现ClassNotFoundException异常:
然后在网上查找得知是由于eclipse发布web项目时,没有将jar包发布,即:lib目录不存在
解决办法:
设置一下eclipse:
项目 —> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK
把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar了。
Unluckily,又出现Exception:
解决办法:重新指定Maven的本地仓库
原因:可能是本地仓库中的某些jar包出错了….2333333333333
参考链接
- http://www.cnblogs.com/amosli/p/4067665.html
- http://stackoverflow.com/questions/6322711/tomcat-spring-web-class-not-found-exception-org-springframework-web-context
- http://stackoverflow.com/questions/32229137/updating-status-for-apache-tomcat-v7-0-at-localhost-java-lang-indexoutofbo
0 0
- maven ClassNotFoundException: ContextLoaderListener
- maven java.lang.ClassNotFoundException: ContextLoaderListener
- ClassNotFoundException:ContextLoaderListener
- maven java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 启动maven项目报错:java.lang.ClassNotFoundException: ContextLoaderListener解决方法
- Maven工程 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven项目报 ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: ContextLoaderListener
- java.lang.ClassNotFoundException: ContextLoaderListener
- tomcat clean--ContextLoaderListener ClassNotFoundException
- java.lang.ClassNotFoundException: ContextLoaderListener
- Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 1002. A+B for Polynomials (25)
- 读《统计自然语言处理》——文本分析
- Qt软件开发文档6---dockWidget自定义标题栏
- Oracle中快速导入导出数据库的几种方式
- C语言复习笔记 1
- maven ClassNotFoundException: ContextLoaderListener
- POD------报错 “Generating Pods project Abort trap 6"
- Android 获取手机联系人信息
- Java面试大全(四)
- 优秀开源项目学习(cms、商城、邮件、微信等)
- 回调函数
- 莎士比亚(50条名句)内容大全
- Hive(八)--日期函数
- 央视《第一时间》:公共及企业网站屡遭黑客攻击