2

I want to set Hibernate5 plugin to my grails application, I use grails 3.1.1. I checked already this question and I followed it: How to configure Grails 3.1.1 to use Hibernate 5

However I am getting the following error:

ERROR org.springframework.boot.SpringApplication - Application startup failed
Caused by:   org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is 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.NoSuchMethodError: org.grails.orm.hibernate.cfg.CollectionType.<init>(Ljava/lang/Class;Lorg/grails/orm/hibernate/cfg/GrailsDomainBinder;)V
Community
  • 1
  • 1
Ectoras
  • 1,297
  • 3
  • 13
  • 33

1 Answers1

1

Not so much an error, rather Hibernate 5.1 is not (officially) supported in Grails yet - issue #9783. No due date.

KapudanPasha
  • 166
  • 1
  • 1
  • 9
  • Thank you very much for the indication. – Ectoras Mar 16 '16 at 14:17
  • What about Hibernate 5.0, does anyone know if it will deploy to Jboss. I think I may be having the same problem, but my error message is slightly different. – DAC Mar 22 '16 at 23:49