-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Author Message
 Post subject: using hibernate search on a jboss 4.2 server
PostPosted: Fri Aug 01, 2008 10:03 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
Hello erverybody,

i'm trying to use hibernate search on a jboss 4.2 server after failing to use compass on that AS. I set the persistence.xml and added the org.hibernate.search.event.FullTextIndexEventListener to post-insert, post-update and post-delete. Besides that I added hibernate search annotations to a entity class as described in the hibernate search documentation.
in opposite to compass hibernate search at least shows some success but still generates errors when querying the index.

when i skip defining a directory_provider and indexBase in the persistence.xml i get this message when trying to send a query:

15:46:05,974 ERROR [STDERR] javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/search/FullTextQuery;
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
15:46:05,974 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
15:46:05,974 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
15:46:05,974 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,974 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
15:46:05,974 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
15:46:05,974 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,974 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
15:46:05,974 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
15:46:05,974 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
15:46:05,974 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
15:46:05,974 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
15:46:05,990 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:05,990 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
15:46:05,990 ERROR [STDERR] at $Proxy204.findActor(Unknown Source)
15:46:05,990 ERROR [STDERR] at blazeDS.NetworkManagerProxy.findActor(NetworkManagerProxy.java:573)
15:46:05,990 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:46:05,990 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:46:05,990 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:46:05,990 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:46:05,990 ERROR [STDERR] at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:406)
15:46:05,990 ERROR [STDERR] at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
15:46:05,990 ERROR [STDERR] at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417)
15:46:05,990 ERROR [STDERR] at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:878)
15:46:05,990 ERROR [STDERR] at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
15:46:06,006 ERROR [STDERR] at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
15:46:06,006 ERROR [STDERR] at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49)
15:46:06,006 ERROR [STDERR] at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
15:46:06,006 ERROR [STDERR] at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
15:46:06,006 ERROR [STDERR] at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
15:46:06,006 ERROR [STDERR] at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
15:46:06,006 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:46:06,006 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
15:46:06,006 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
15:46:06,006 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:46:06,006 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:46:06,006 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
15:46:06,006 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
15:46:06,006 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
15:46:06,006 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
15:46:06,006 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
15:46:06,021 ERROR [STDERR] Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/search/FullTextQuery;
15:46:06,021 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:174)
15:46:06,021 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
15:46:06,021 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:06,021 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
15:46:06,021 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:06,021 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
15:46:06,021 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:46:06,021 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
15:46:06,068 ERROR [STDERR] ... 54 more
15:46:06,068 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError: org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/search/FullTextQuery;
15:46:06,068 ERROR [STDERR] at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.createFullTextQuery(FullTextEntityManagerImpl.java:61)
15:46:06,068 ERROR [STDERR] at sessions.NetworkManagerBean.findActor(NetworkManagerBean.java:679)
15:46:06,068 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:46:06,068 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:46:06,068 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:46:06,068 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:46:06,068 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
15:46:06,068 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
15:46:06,068 ERROR [STDERR] ... 61 more

this exception only is thrown when i try to search for a query string. Adding new objects of the indexed class is no problem when not setting a directory povider.

setting a directory provider and indexbase following error is shown when trying to add a object of the indexed class:

15:57:12,169 ERROR [STDERR] javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
15:57:12,169 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
15:57:12,169 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
15:57:12,169 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,169 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
15:57:12,169 ERROR [STDERR] at $Proxy89.addActor(Unknown Source)
15:57:12,169 ERROR [STDERR] at blazeDS.NetworkManagerProxy.addActor(NetworkManagerProxy.java:29)
15:57:12,169 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:57:12,169 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:57:12,169 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:57:12,169 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:57:12,169 ERROR [STDERR] at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:406)
15:57:12,185 ERROR [STDERR] at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
15:57:12,185 ERROR [STDERR] at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:878)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
15:57:12,185 ERROR [STDERR] at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
15:57:12,185 ERROR [STDERR] at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
15:57:12,185 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:57:12,185 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
15:57:12,185 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
15:57:12,185 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:57:12,185 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:57:12,185 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
15:57:12,185 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
15:57:12,185 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
15:57:12,185 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
15:57:12,185 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
15:57:12,185 ERROR [STDERR] Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
15:57:12,185 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:174)
15:57:12,185 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
15:57:12,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,185 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
15:57:12,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,185 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
15:57:12,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:57:12,185 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
15:57:12,185 ERROR [STDERR] ... 54 more
15:57:12,185 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError: org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
15:57:12,185 ERROR [STDERR] at org.hibernate.search.engine.DocumentBuilder.getDocument(DocumentBuilder.java:234)
15:57:12,185 ERROR [STDERR] at org.hibernate.search.event.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:154)
15:57:12,185 ERROR [STDERR] at org.hibernate.action.EntityIdentityInsertAction.postInsert(EntityIdentityInsertAction.java:90)
15:57:12,185 ERROR [STDERR] at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:66)
15:57:12,185 ERROR [STDERR] at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
15:57:12,185 ERROR [STDERR] at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
15:57:12,185 ERROR [STDERR] at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
15:57:12,185 ERROR [STDERR] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
15:57:12,185 ERROR [STDERR] at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
15:57:12,185 ERROR [STDERR] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
15:57:12,185 ERROR [STDERR] at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
15:57:12,185 ERROR [STDERR] at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)
15:57:12,185 ERROR [STDERR] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)
15:57:12,185 ERROR [STDERR] at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)
15:57:12,185 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:212)
15:57:12,185 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
15:57:12,185 ERROR [STDERR] at sessions.NetworkManagerBean.addActor(NetworkManagerBean.java:71)
15:57:12,185 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:57:12,185 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:57:12,185 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:57:12,185 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:57:12,185 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
15:57:12,185 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
15:57:12,185 ERROR [STDERR] ... 61 more


jope anyone can help me on that. any clue?
does anyone know a nice tutorial for hibernate search on jboss??

regards
Michael


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 10:50 am 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
Have you added included the main jars from the Hibernate Search distribution?

Always check the 1st error message for a clue ... your jars are not found either within your application or JBoss path.

Regards,

Mark Dathorne


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 10:50 am 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
(double posted ... forum issue?)


Last edited by mark.dathorne on Fri Aug 01, 2008 7:24 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 11:11 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
Hey,

I tried both:
- having the jars within the ejb project and
- adding them to the server libs ...\jboss\server\default\libs

when the jars would be missing he would throw a classnotfound exception or similar one.

regards
Michael


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 11:12 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
(empty)


Last edited by mugglmenzel on Fri Aug 01, 2008 11:20 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 11:12 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
(empty)


Last edited by mugglmenzel on Fri Aug 01, 2008 11:20 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 11:16 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
Hey Marc,

more detailed:

the jars I added are the Hibernate Search 3.0.1GA jars: hibernate search jar and the lucene 2.3.2 jar.
I tried Hibernate Search 3.1.0Beta1 aswell. Same error!

But using an older Lucene version 1.9.x helps a little with the addDocument error and entities can be indexed but still not searched.

regards
Michael


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 7:20 pm 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
Hey Michael,

Check the code to createFullTextQuery (1st line of error) and check your parameters.

Now check your classpath to confirm the correct hibernate-search jar.

Then check if that is the right version (includes the method and parameters you require).

The error log doesn't lie.

Regards,

Mark


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 7:21 pm 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
i.e. looks like the version you compile against is NOT the version found at run time


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2008 8:07 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
Hey Mark,
I solved the prob after I found this thread in the forum:

http://forum.hibernate.org/viewtopic.php?p=2381912

Thx a lot for your help. It's just JBoss that uses to old libs on the server side.
That's why he couldn't find or didn't use the appropriate methods. Seems server side libs have a higher priority than those in the EAR.

regards + thx
Michael


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2008 8:42 am 
Newbie

Joined: Fri Aug 01, 2008 7:34 am
Posts: 7
comment regarding hibernate documentation:

would be nice if those libs could be added to/mentioned in the requirements of hibernate search!


@Mark
it's weird that hibernate core, annotations and common annotation have such in influence. I still don't understand how this could have an impact on the method calls that raised the exceptions.
but now everything runs fine :)

thx


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 02, 2008 12:02 pm 
Beginner
Beginner

Joined: Thu Aug 04, 2005 5:06 am
Posts: 31
Location: Bedford, UK
Understood ... and noted for the future


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 07, 2008 10:06 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The required jars are listed on the download page, the /lib/README.txt file and on the pom.xml if you use Maven.
But I have added an entry in the FAQ http://www.hibernate.org/446.html

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.