ElasticSearch Plugin, Grails 2.3.0 and Hibernate 4.x

If you want to use the Elasticsearch plugin with Grails 2.3.0 and Hibernate 4.x as I do, be warned.

AFAIK, the Elasticsearch plugin depends on Hibernate 3 and Hibernate 4.x is not backwards compatible.

I tried even the newest Elasticsearch plugin snapshots:


but ended up with a lot of compile time errors from AuditEventListener.groovy.

 void onPostDelete(PostDeleteEvent event) {
172: unable to resolve class org.hibernate.event.DeleteEvent

void onDelete(DeleteEvent deleteEvent, Set set) {
176: unable to resolve class org.hibernate.event.FlushEvent
24 errors

Unfortunately, it seems that your are out of luck, if you need Hibernate 4.x  and want to use the Elasticsearch plugin.

Hope this helps to save you some time.


Meanwhile I found a solution to overcome this problems and get the ElastiScearch plugin working with Hibernate 4.x. See my other post.

This entry was posted in Development, Grails and tagged , , . Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.