解决方案 »

  1.   

     配置上没有看到什么问题啊 , 不是你SessionFactoryImpl  为什么要实现SessionFactory 啊?
      

  2.   

    Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.hibernate.impl.SessionFactoryImpl' to required type 'org.hibernate.SessionFactory' for property 'sessionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.hibernate.SessionFactory] for property 'sessionFactory': no matching editors or conversion strategy found不能把 SessionFactoryImpl 转换成 org.hibernate.SessionFactory
      

  3.   

    antlr-2.7.6.jar,cglib-nodep-2.1_3.jar,com.springsource.org.aopalliance-1.0.0.jar,com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar,commons-collections-3.1.jar,commons-fileupload-1.2.1.jar,commons-io-1.3.2.jar,commons-logging-api-1.1.jar,dom4j-1.6.1.jar,ejb3-persistence.jar,freeer-2.3.16.jar,hibernate3.jar,javassist-3.12.0.GA.jar,jta-1.1.jar,ognl-3.0.jar,ojdbc14.jar,org.springframework.aop-3.0.5.RELEASE.jar,org.springframework.asm-3.0.5.RELEASE.jar,org.springframework.beans-3.0.5.RELEASE.jar,org.springframework.context-3.0.5.RELEASE.jar,org.springframework.core-3.0.5.RELEASE.jar,org.springframework.expression-3.0.5.RELEASE.jar,org.springframework.jdbc-3.0.5.RELEASE.jar,org.springframework.orm-3.0.5.RELEASE.jar,org.springframework.transaction-3.0.5.RELEASE.jar,org.springframework.web-3.0.5.RELEASE.jar,servlet-api.jar,slf4j-api-1.6.1.jar,slf4j-nop-1.6.1.jar,struts2-core-2.2.1.jar,struts2-spring-plugin-2.2.1.jar,xwork-core-2.2.1.jar
      

  4.   

    仅仅是 继承HibernateDaoSupport,注入sessionFactory就报这个错了,很奇怪,配置查了好久没发现哪有问题
      

  5.   

    http://docs.spring.io/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/HibernateDaoSupport.html你可以看看 api的声明, 必须注入org.hibernate.SessionFactory
      

  6.   

    org.springframework.orm.hibernate3 
    Class LocalSessionFactoryBeanjava.lang.Object
      extended by org.springframework.orm.hibernate3.AbstractSessionFactoryBean
          extended by org.springframework.orm.hibernate3.LocalSessionFactoryBean
    All Implemented Interfaces:
    BeanClassLoaderAware, DisposableBean, FactoryBean, InitializingBean, PersistenceExceptionTranslator
    Direct Known Subclasses:
    AnnotationSessionFactoryBean跟org.hibernate.SessionFactory 一点关系都灭有
      

  7.   

    所以要不修改 DAO的父类,要不换个sessionfactory
      

  8.   

    Spring管理hibernate就可以,加上Struts就报这个错了
      

  9.   

    Spring管理hibernate就可以,加上Struts就报这个错了session factory 用这个org.hibernate.impl.SessionFactoryImpl 看看