Hi,
I'm using Hibernate Search 3.0.1.GA with JBoss AS 4.2.2.GA, using JPA. When I try and perform a search with the following code:
Code:
FullTextEntityManager fullTextEm = Search.createFullTextEntityManager(em);
org.apache.lucene.search.Query luceneQuery = builder.buildQuery();
FullTextQuery query = fullTextEm.createFullTextQuery(luceneQuery, entityClass);
I get the following error:
Quote:
Caused by: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lo
rg/hibernate/search/FullTextQuery;
at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.createFullTextQuery(FullTextEntityManagerImpl.java:61)
at com.vocado.services.search.SearchServiceBean.buildQuery(SearchServiceBean.java:60)
at com.vocado.services.search.SearchServiceBean.projectionSearch(SearchServiceBean.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
I am including hibernate-search.jar and lucene-core.jar in my ear (and application.xml), and the hibernate3.jar, hibernate-entitymanager.jar, hibernate-annotations.jar, hibernate-commons-annotations.jar are in the Jboss server/default/lib directory.
I've tried a number of combinations of the dependencies (and putting them in the EAR or lib), but can't seem to find anything that works.
Any help much appreciated.
Many thanks,
Anton