Security Exception when using Hibernate Search and EAP 5.1.0.
Issue
I am upgrading an app that uses hibernate search to EAP 5.1.0. According to the Compatibility Matrix in the documentation, EAP 5.1.0 is compatible with Hibernate Search version "3.1.1.GA_CP03". However these hibernate search jars aren't included in EAP 5.1.0 (at least I couldn't find them). I was able to find hibernate-search.jar and lucene-core.jar in the seam deployment that comes with EAP 5.1.0, but when I copied those two jars into my application's ear directory, I got this error:
2011-02-09 16:38:03,612 WARN [org.jboss.detailed.classloader.ClassLoaderManager] (main) Unexpected error during load of:org.apache.lucene.search.TermsFilter
java.lang.SecurityException: class "org.apache.lucene.search.TermsFilter"'s signer information does not match signer information of other classes in the same package
This is because I'm also using a lucene jar solr-lucene-queries-1.3.0.jar that seems to not jive with that version of lucene-core.jar from the seam distribution.
Can you tell me where I can get the correct hibernate search and lucene jars that I should be deploying with EAP 5.1.0?
These are the jars we are currently using in our project (so ideally I need to get the correct versions of all of these jars):
hibernate-search.jar
lucene-core.jar
lucene-snowball-2.4.1.jar
solr-common-1.3.0.jar
solr-core-1.3.0.jar
solr-lucene-queries-1.3.0.jar
Environment
JBoss Enterprise Application Platform EAP 5.1.0.GA
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
