[jboss-user] [JBoss Seam] - NoSuchMethodFound createFullTextQuery()

momochone11 do-not-reply at jboss.com
Fri Aug 17 17:48:26 EDT 2007


Hello,

I am having some trouble integrating Hibernate Search into my app with Seam 2.0.

I have this method, its just copy and paste and modified abit from a Hibnerate test:

public void testSessionWrapper() throws Exception {
  | 		FullTextSession s = Search.createFullTextSession((org.Hibernate.Session)getEntityManager().getDelegate());
  | 		QueryParser parser = new QueryParser( "title", new StopAnalyzer() );
  | 
  | 		Query query = parser.parse( "summary:noword" );
  |     Class[] abc = new Class[] {
  | 				Location.class
  | 		};
  |     FullTextQuery hibQuery = s.createFullTextQuery( query,abc);
  | 	}

Everything COMPILES fine, but I keep on getting this exception when I try to actually search: 

Caused by: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/Query;
  | 	at com.mxnmedia.siteaudit.glue.SearchAction.getSearchResults(SearchAction.java:69)

I am using Hibernate Search Beta 4, when I deploy my app it SAYS its using Hibernate Search Beta4 , so it's using the right jar (or not?). I tried other beta versions and the deploy message does change (instead of saying using beta 4, it says uses beta #), but yet the same exception message when I search.

Can anyone help?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075385#4075385

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075385



More information about the jboss-user mailing list