NoClassDefFoundError: org/apache/ibatis/session/SqlSession
2016-05-18 10:42
651 查看
我用maven管理jar包,然后配置ssm环境时老是出现
[ERROR] [2016-05-16 15:10:40][org.springframework.web.context.ContextLoader]Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [spring-mybatis.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError:
org/apache/ibatis/session/SqlSession
我知道是缺少相关的jar包,但是我项目里明明已经有了mybatis的jar包,让我很是郁闷。
过了一会,myeclipse里弹出一个框,大概是说maven某些jar包下载不完全,我仔细看了看Maven Dependencies,发现了一个小细节
![](https://oscdn.geek-share.com/Uploads/Images/Content/201605/a5fffcbde012e268d6add9c71ff880e5)
,正常的jar包是像上面的一样,底下的那个就是出问题的jar包,也许是下载不完整。我在pom.xml里面把出问题的jar包的依赖删除,然后从网上下了相关的jar包,放到项目的lib里面然后add
to build path,重新部署就可以啦。
[ERROR] [2016-05-16 15:10:40][org.springframework.web.context.ContextLoader]Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [spring-mybatis.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError:
org/apache/ibatis/session/SqlSession
我知道是缺少相关的jar包,但是我项目里明明已经有了mybatis的jar包,让我很是郁闷。
过了一会,myeclipse里弹出一个框,大概是说maven某些jar包下载不完全,我仔细看了看Maven Dependencies,发现了一个小细节
,正常的jar包是像上面的一样,底下的那个就是出问题的jar包,也许是下载不完整。我在pom.xml里面把出问题的jar包的依赖删除,然后从网上下了相关的jar包,放到项目的lib里面然后add
to build path,重新部署就可以啦。
相关文章推荐
- CentOS 6.7配置安装(Apache+PHP5+MySQL)LAMP服务器
- ASF(Apache软件基金会) 新兴的顶级大数据项目
- apache开启.htaccess及.htaccess的使用方法
- 主机无法访问虚拟机Linux的apache
- win7下配置Apache本地虚拟主机
- apache开启虚拟主机localhost无法访问
- Linux下apache安装
- Apache POI 操作Excel
- Apache Prefork、Worker和Event三種MPM分析
- webbench 压力测试
- apache服务器 内面可以访问 外面访问不了
- Unbuntu修改Apache网站根目录
- php编译(apache)
- apache
- 了解 GNU GPL/GNU LGPL/BSD/MIT/Apache协议
- Apache连接本地自定义站点服务器
- 关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo
- Apache Spark Jobs 性能调优(二)
- Unbuntu环境下配置Apache
- org.apache.commons.lang3.ArrayUtils 学习笔记