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
Conflict with Grails Searchable plugin, start-up error #4
Comments
@vahidpaz I've installed both plugins, but I didn't see any errors when starting my app. |
@jalessandro That's strange because I just reproduced it again right now (more debug output below). I'm using Grails 2.3.6 and still at Searchable 0.6.6. I temporarily went into Logical Delete and removed the dependency on hibernate-hijacker, and then I could successfully load both Searchable and Logical Delete in my Grails app. Obviously I had to modify DeleteHibernateFilterConfigurator.java temporarily so that it would not extend HibernateConfigPostProcessor, thus making Logical Delete unusable, but the point was to find out what's going on. So my conclusion is a conflict between Searchable and Hibernate Hijacker. My error stack points out line 95. I think the code looks something like this: http://grepcode.com/file/repo1.maven.org/maven2/com.github.lhanson/compass/2.2.2-ldh/org/compass/gps/device/hibernate/lifecycle/DefaultHibernateEntityLifecycleInjector.java#95 It looks like Hijacker uses WrappedSessionFactoryBean.buildSessionFactory() to wrap the real factory with its own proxy, while Compass is expecting the SessionFactoryImpl concrete type. Should we contact the Compass developers and see if they can use the org.hibernate.SessionFactory interface rather than a concrete type?
|
i get thwe same error in grails 2.4.2 |
Switching back to the: runtime ":hibernate:3.6.10.17" cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' |
My Grails app does not start-up if I have the Grails Searchable plugin enabled, version 0.6.6. Error:
tags: compass, lucene
The text was updated successfully, but these errors were encountered: