Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalSessionFactoryBean schema update doesn't work with Hibernate v3.2 [SPR-6509] #11175

Closed
spring-projects-issues opened this issue Dec 3, 2009 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

David Ward opened SPR-6509 and commented

We are testing Alfresco against the CI-477 build and have found that org.springframework.orm.hibernate3.LocalSessionFactoryBean which now claims to require "Hibernate 3.2 or later" still doesn't work against 3.2 for schema updates. We get the following trace.

Caused by: java.lang.NoClassDefFoundError: org/hibernate/jdbc/Work
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.updateDatabaseSchema(LocalSessionFactoryBean.java:1004)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterSessionFactoryCreation(LocalSessionFactoryBean.java:886)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:213)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
... 25 more


Affects: 3.0 RC2

Referenced from: commits 0d413c7

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

That was a side effect of our upgrade to Hibernate 3.3 where we tried to do things the Hibernate 3.3 way as far as possible. We rolled back to Hibernate 3.2 support since but unfortunately forgot to roll back the schema update implementation as well. Fixed for 3.0 GA now.

Juergen

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants