-->
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.  [ 1 post ] 
Author Message
 Post subject: java.lang.Object is not an indexed entity
PostPosted: Tue Nov 22, 2011 9:49 am 
Newbie

Joined: Thu Nov 17, 2011 3:57 pm
Posts: 3
I am trying to use Hibernate Search 3.4.1.Final in JBoss 6.1

I was facing classloading problems until I change every lib to provided in my pom.xml. Only Hibernate Search and Hibernate Entity Manager libs are in my pom.xml with compile scope.

I have only one simples class to be indexed with common types (such as Integer and String).

When I try to create the index I am geting the following error:

Code:
11:31:22,944 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/procedimento-live-search]] StandardWrapper.Throwable: java.lang.IllegalArgumentException: java.lang.Object is not an indexed entity or a subclass of an indexed entity
        at org.hibernate.search.impl.MassIndexerImpl.toRootEntities(MassIndexerImpl.java:103) [:3.4.1.Final]
        at org.hibernate.search.impl.MassIndexerImpl.<init>(MassIndexerImpl.java:75) [:3.4.1.Final]
        at org.hibernate.search.impl.FullTextSessionImpl.createIndexer(FullTextSessionImpl.java:207) [:3.4.1.Final]
        at br.com.vetta.ProcedimentoSearch.index(ProcedimentoSearch.java:51) [:]
        at br.com.vetta.ProcedimentoServlet.init(ProcedimentoServlet.java:31) [:]
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208) [:6.1.0.Final]
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:955) [:6.1.0.Final]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) [:6.1.0.Final]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [:6.1.0.Final]
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0.Final]
        at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
        at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]
        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.1.0.Final]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.1.0.Final]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]




I got no information about this error in the web.
Could some one help me with this?

Cheers!


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

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.