You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to make it works following documentation i've found a problem:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cache/access/AccessType
This is hazelgrails 0.1 with hibernate4 ... are you aware about any problem with this configuration?
The text was updated successfully, but these errors were encountered:
Same problem with HazelGrails 1.0.2. Used dependency hazelcast-all is only for hibernate3.
To fix the problem, you must include hazelcast-hibernate4. As the plugin currently uses hibernate-all, you must exclude it, as it already contains com.hazelcast.hibernate.HazelcastCacheRegionFactory for Hibernate3, so unexpected results may occur based on the class loading order.
Therefore, add to your build.gradle:
replace hazelcast-all dependency with hazelcast depencency (base).
Improve the documentation to explain to add the needed hazelcast hibernate lib, based on the used Hibernate version (4 or 5). I think it's better than implementing some dynamic logic to choose the hibernate-hibernate version dependency automatically (since we have now Hibernate 4, and 5 for Grails 3.2.x).
Improve the example Grails3 project to use Hazelcast as 2nd level cache (currently it is used for Objects, only)
Implement integration test application within the plugin
Trying to make it works following documentation i've found a problem:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cache/access/AccessType
This is hazelgrails 0.1 with hibernate4 ... are you aware about any problem with this configuration?
The text was updated successfully, but these errors were encountered: