Hi All,
Can please any buddy tell me what are the chnages needs to be done when we use JBOSS-4.2.2.GA?
I have checked the following docs for it
The error is: Caused by: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/search/FullTextQuery;
Hibernate Search 3.0 requires Hibernate Annotations 3.3.x and JBoss AS 4.2 ships with 3.2.x. Replace the following jars:
* hibernate-annotations.jar (3.3.x for Search 3.0)
* hibernate-validator.jar (3.0.x for Search 3.0)
* hibernate-entitymanager.jar (3.3.x for Search 3.0)
* hibernate-commons-annotations.jar (3.0.x for Search 3.0)
in [JBOSS_HOME]/server/[myconfig]/lib
Then place Hibernate Search and Lucene JARs in your EAR or WAR.
But when i try to replace these JAR's from lib it asks for another dependency and then another and so on............
Any solution for it?
I am using following dependency for Hibernate search
Code:
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>3.0.1.GA</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.0.ga</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.0.0.ga</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.3.1.ga</version>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>2.2.0</version>
I have used <exclusions> for inner dependecies do i need to do that or not?
Regards,
Sachin Parnami