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

 

posted @ 2014-03-04 14:07  Mr_Clint  阅读(2579)  评论(0编辑  收藏  举报