-
Notifications
You must be signed in to change notification settings - Fork 115
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
Command execution error: Bean named 'sessionFactory' is expected to be of type 'org.springframework.beans.factory.FactoryBean' but was actually of type 'org.hibernate.internal.SessionFactoryImpl' #151
Comments
Please upload an example project |
https://github.com/jameskhedley/test151 It's just a fresh app The only other thing I did was change Gorm version to 6.1.8 instead of 6.1.10 in gradle.properties |
Adding specific liquibase doesn't help either, as per docs:
|
@jameskleeh anything yet? If migration plugin is broken for grails 3, would halt our migration project. Suspect I'm doing something wrong though... |
Surely plugin version 2.0.0? Current is 3.0.4 |
@robertoschwald yes it says plugin version 2.0.0, which is the version that is supposed to work with hibernate4? As per https://github.com/grails-plugins/grails-database-migration#versions As far as I can see, plugin v1.4 works ok with grails 2.x and hibernate3 (and hibernate4 i think) but plugin v2.0.0 doesn't work with grails 3.x and hibernate4... like at all. |
Not sure if 2.0.0 works with Grails 3.3.x. Can you try Hibernate 5 and 3.0.4? |
Using grails 3.3.8, hibernate5 and plugin v3.0.3 fails with a different error (see below). Is there a version of grails 3.x that you would expect to work with 2.0.0 and hibernate 4? Not sure what the point of that branch is otherwise.
|
The error you see in 3.0.3 was fixed in 3.0.4. You need to use this version. |
Good spot and thanks for help so far. Actually i tried it with 3.0.4 and got the same error - but only with
Also I was thrown off by the "no-argument" non-error. I still think 2.0.0 is broken unless someone can say what versions of hibernate4 and grails it works with. In reality I think we'll probably try hibernate5 with our project and hope that doesn't break anything too badly. |
Appears to be the same as #81 but with grails 3.3.8, plugin 2.0.0, hibernate4, gorm version 6.1.8.
Shouldn't that combination work?
Steps to Reproduce
grails dbm-gorm-diff
Expected Behaviour
Diff produced
Actual Behaviour
Command execution error: Bean named 'sessionFactory' is expected to be of type 'org.springframework.beans.factory.FactoryBean' but was actually of type 'org.hibernate.internal.SessionFactoryImpl'
Environment Information
Example Application
Can supply if required.
The text was updated successfully, but these errors were encountered: