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

srpantano do-not-reply at jboss.com
Thu Aug 30 13:46:43 EDT 2007


I created classes with Seam-Gen (Seam 1.2.1) and I try use Hibernate Search the follow errors appears:



  | 14:41:05,194 INFO  [STDOUT] Hibernate: insert into RCR.CONF_SYSTEM (SYSTEM_NAME, ID_SYSTEM) values (?, ?)
  | 14:41:05,209 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)
  | 	at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
  | 	at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
  | 
...

  | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | 	at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.reflect.InvocationTargetException
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 
...

  | at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | 	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | 	... 61 more
  | Caused by: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
  | 	at org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
  | 	at org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
  | 	at org.hibernate.action.EntityInsertAction.postInsert(EntityInsertAction.java:127)
  | 	at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:106)
  | 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
  | 
...

  | at org.jboss.seam.persistence.EntityManagerProxy.flush(EntityManagerProxy.java:83)
  | 	at org.jboss.seam.framework.EntityHome.persist(EntityHome.java:49)
  | 	at com.bcsinfo.security.view.web.util.AuditLogHome.persist(AuditLogHome.java:79)
  | 	... 92 more
  | 14:41:05,209 WARN  [lifecycle] #{sistemHome.persist}: java.lang.reflect.InvocationTargetException
  | javax.faces.FacesException: #{sistemHome.persist}: java.lang.reflect.InvocationTargetException
  | 	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
  | 	at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | 
...

  | at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | 	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | 	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | 	... 61 more
  | Caused by: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
  | 	at org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
  | 	at org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
  | 	at org.hibernate.action.EntityInsertAction.postInsert(EntityInsertAction.java:127)
  | 	at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:106)
  | 

the Seam-gem (1.2.1) and Hibernate Search works togheter?

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

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



More information about the jboss-user mailing list