tomcat5.0  jdk1.5
在线等.............................ing

解决方案 »

  1.   

    可以把你的application.xml关于sessionFactory的配置帖出来吗?错误显示,你的sessionFactory没有定义!
      

  2.   

    把类里获取'sessionFactory' 的代码贴来
      

  3.   


        <bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
      <property name="hibernateProperties">
        <props>
          <prop key="hibernate.dialect">net.sf.hibernate.dialect.OracleDialect</prop>
        </props>
      </property>
      <property name="dataSource">
    <ref bean="dataSource"/>
    </property>
    <property name="configLocation">
    <value>classpath:hibernate.cfg.xml</value>
    </property>
    <property name="lobHandler"><ref local="oracleLobHandle"/></property>
        </bean>
        
    <!-- ######### Hibernate DAO config
      

  4.   

    org.springframework.orm.hibernate3.LocalSessionFactoryBean
    换这个
      

  5.   

    把错误栈全部帖出来另外,你的hibernate.jar的版本时多少?2.x or 3.x