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:

  • 0.90.3.0-SNAPSHOT
  • 0.20.6.1-SNAPSHOT

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

...
 void onPostDelete(PostDeleteEvent event) {
 .../target/work/plugins/elasticsearch-0.20.6.1-SNAPSHOT/src/groovy/org/grails/plugins/elasticsearch/AuditEventListener.groovy:
172: unable to resolve class org.hibernate.event.DeleteEvent

void onDelete(DeleteEvent deleteEvent, Set set) {
.../target/work/plugins/elasticsearch-0.20.6.1-SNAPSHOT/src/groovy/org/grails/plugins/elasticsearch/AuditEventListener.groovy:
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.

Johannes

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s