Announcement Announcement Module
No announcement yet.
session factory problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • session factory problem

    Hi Everyone,

    I am getting following exception when run application.

    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in class path resource [spring-session-factory.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.hibernate.cfg.Configuration]: Constructor threw exception; nested
    exception is java.lang.IncompatibleClassChangeError

    I defeined my session factory like this.

    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
    <property name="dataSource">
    <ref local="managedDataSource"/>

    <property name="mappingResources">

    <!-- Set the type of database; changing this one property will port
    this to Oracle, MS SQL, hsqldb etc. -->
    <property name="hibernateProperties">
    <prop key="hibernate.dialect">${hibernate.dialect}</prop>
    <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
    <prop key="">${hibernate.hbm2dll.a uto}</prop>
    <!-- Disable the second-level cache -->
    <prop key="hibernate.cache.provider_class">org.hibernate .cache.NoCacheProvider</prop>

    Please help me on this.

  • #2
    This forum is for the Spring Integration project. Please post this question in the Data Access forum.