The bean definition indicates that you are trying to configure Hibernate 3, not Hibernate 4. You have probably completed the wrong example or tutorial. Hibernate 4 does not have a configurationClass property. Just delete it:
<bean id="usermanagementSessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="usermanagementDataSource" /> <property name="configLocation" value="classpath:hibernate.cfg.xml" /> <property name="hibernateProperties" ref="hibernateProperties" /> </bean>
With Hibernate 4, you also do not need to provide XML configuration. All you can do is specify packages to scan for @Entity classes:
<property name="packagesToScan" value="com.ecom.data.access.model" />
source share