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

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

原因:3中这样配置

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

原因:4中该这样配置

 <bean id="transactionManager"
        class="org.springframework.orm.hibernate4.HibernateTransactionManager">
        <property name="dataSource" ref="dataSource" />
        <property name="sessionFactory" ref="sessionFactory" />
  </bean>
hibernate4
原文地址:https://www.cnblogs.com/Mr-Clint/p/3580287.html