首页 > 其他 > 详细

nested exception is java.lang.NoClassDefFoundError:org/hibernate/engine/SessionFactoryImplementor

时间:2014-03-05 03:26:51      阅读:894      评论:0      收藏:0      [点我收藏+]

hibernate4整合spring3  时出现 nested exception is java.lang.NoClassDefFoundError:org/hibernate/engine/SessionFactoryImplementor 异常

 

原因:3中这样配置

bubuko.com,布布扣
<bean id="transactionManager"
    class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory" />
    <property name="nestedTransactionAllowed" value="true" />
</bean>
View Code

原因:4中该这样配置

bubuko.com,布布扣
 <bean id="transactionManager"
        class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <property name="dataSource" ref="dataSource" />
        <property name="sessionFactory" ref="sessionFactory" />
  </bean>
hibernate4

nested exception is java.lang.NoClassDefFoundError:org/hibernate/engine/SessionFactoryImplementor,布布扣,bubuko.com

nested exception is java.lang.NoClassDefFoundError:org/hibernate/engine/SessionFactoryImplementor

原文:http://www.cnblogs.com/Mr-Clint/p/3580287.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!