无法初始化org.springframework.orm.hibernate4.LocalSessionFactoryBuilder

tawban 2015-12-22 10:21:46
[ERROR][2015-12-22 09:18:48,109][com.alibaba.druid.pool.DruidAbstractDataSource]maxIdle is deprecated
[INFO][2015-12-22 09:18:48,176][com.alibaba.druid.pool.DruidDataSource]{dataSource-1} inited
[INFO][2015-12-22 09:18:48,993][com.alibaba.druid.pool.DruidDataSource]{dataSource-1} closed
[ERROR][2015-12-22 09:18:48,995][org.springframework.web.context.ContextLoader]Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cgAutoListController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jeecgframework.web.cgform.service.autolist.ConfigServiceI org.jeecgframework.web.cgform.controller.autolist.CgAutoListController.configService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jeecgframework.web.cgform.service.config.CgFormFieldServiceI org.jeecgframework.web.cgform.service.impl.autolist.ConfigServiceImpl.tablePropertyService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cgFormFieldService' defined in file [D:\TOOL\jeccg\webapps\jeecg\WEB-INF\classes\org\jeecgframework\web\cgform\service\impl\config\CgFormFieldServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory org.jeecgframework.core.common.dao.impl.GenericBaseCommonDao.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/resources/spring-mvc-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.springframework.orm.hibernate4.LocalSessionFactoryBuilder


这个是什么原因?
...全文
269 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
李德胜1995 2017-07-10
  • 打赏
  • 举报
回复
spring-mvc-hibernate.xml配置文件贴出来看看。。。。
  • 打赏
  • 举报
回复
hibernate和spring版本不匹配

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧