[jboss-user] [JBoss Seam] - Hibernate Search

srpantano do-not-reply at jboss.com
Tue Sep 4 13:26:39 EDT 2007


Where is the error in the code? Because doesn´t work. I´m using JPA + Seam 2.0.




  | List result = null;
  |         
  |         try {           
  |             
  |             org.apache.lucene.queryParser.QueryParser parser = 
  |                     new org.apache.lucene.queryParser.QueryParser("sistem", 
  |                         new org.apache.lucene.analysis.standard.StandardAnalyzer(BrazilianAnalyzer.BRAZILIAN_STOP_WORDS));
  | 
  |             org.apache.lucene.search.Query query = parser.parse("sistema");
  |             org.hibernate.search.FullTextQuery hibQuery = 
  |                     getFullTextSession().createFullTextQuery(query, Sistem.class);
  | 
  |             result = hibQuery.list();
  |             
  |             return result;
  |             
  |         } catch (ParseException ex) {
  |             Logger.getLogger("global").log(Level.SEVERE, null, ex);
  |         }
  | 

but when I run: 


  | 14:15:54,671 FATAL [application] java.lang.reflect.InvocationTargetException
  | javax.faces.el.EvaluationException: java.lang.reflect.InvocationTargetException
  |         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
  |         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  |         at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | 
  | ...
  | 
  | 
  | Caused by: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/search/FullTextQuery;
  |         at com.bcsinfo.security.view.web.util.FullTextSearch.search(FullTextSearch.java:77)
  |         at com.bcsinfo.security.view.web.util.FullTextSearch.toSearch(FullTextSearch.java:125)
  |         ... 87 more
  | 

thanks for help!

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

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




More information about the jboss-user mailing list