Hibernate 3 core package for jBPM 4.4.
There is only hibernate 5 package in spring-orm-5.0.2.release.jar of spring.
Solution: therefore, in spring 5. X, you only need to replace the introduced spring-orm-5.0.2.release.jar with spring-orm-4.2.6.release.jar (i.e. 4. X).
Hibernate 3, 4, 5.0 in spring-orm-4.x.x.release.jar
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"><!-- hibernate3 --> <property name="dataSource" ref="dataSource"></property> <property name="configLocation"> <value>classpath:hibernate.cfg.xml</value> </property> </bean>
In this way, the configuration will not report an error because of spring-orm-5.0.2.release.jar. You can find hibernate3.localsessionfactorybean.
Similar Posts:
- Property ‘dataSource’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
- [Solved] Spring Boot Startup Error: DataSourceProperties$DataSourceBeanCreationException
- [Solved] Spring Boot Error: “jdbcUrl is required with driverClassName.”
- Springboot Error: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd
- Cannot resolve reference to bean ‘entityManagerFactory’ while setting constructor argument
- mybatis: Property ‘configuration’ and ‘configLocation’ can not specified with together
- [Solved] Spring introduces the properties variable Error: org.springframework.beans.TypeMismatchException…
- Spring Boot UrlResource loading classpath error: unknown protocol: classpath
- Solve the error of springboot failed to load ApplicationContext
- Quartz Error: qrtz_locks doesn’t exist [How to Solve]