I am not sure why this error happens
this bean is not referenced by indexed or contained in, so hibernate search shouldn't bother
Quote:
org.hibernate.search.SearchException: Unable to perform work. Entity Class is not @Indexed nor hosts @ContainedIn: class fr.app.bean.Mybean
at org.hibernate.search.engine.WorkPlan.getEntityBuilder(WorkPlan.java:481)
at org.hibernate.search.engine.WorkPlan.access$100(WorkPlan.java:52)
at org.hibernate.search.engine.WorkPlan$PerClassWork.<init>(WorkPlan.java:166)
at org.hibernate.search.engine.WorkPlan.getClassWork(WorkPlan.java:108)
at org.hibernate.search.engine.WorkPlan.recurseContainedIn(WorkPlan.java:137)
at org.hibernate.search.engine.AbstractDocumentBuilder.processSingleContainedInInstance(AbstractDocumentBuilder.java:797)
at org.hibernate.search.engine.AbstractDocumentBuilder.appendContainedInWorkForInstance(AbstractDocumentBuilder.java:343)
at org.hibernate.search.engine.WorkPlan$PerEntityWork.processContainedIn(WorkPlan.java:464)
at org.hibernate.search.engine.WorkPlan$PerClassWork.processContainedInAndPrepareExecution(WorkPlan.java:268)
at org.hibernate.search.engine.WorkPlan.processContainedInAndPrepareExecution(WorkPlan.java:127)
at org.hibernate.search.backend.WorkQueue.prepareWorkPlan(WorkQueue.java:133)
at org.hibernate.search.backend.impl.BatchedQueueingProcessor.prepareWorks(BatchedQueueingProcessor.java:124)
at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.beforeCompletion(PostTransactionWorkQueueSynchronization.java:89)
at org.hibernate.search.backend.impl.EventSourceTransactionContext$DelegateToSynchronizationOnBeforeTx.doBeforeTransactionCompletion(EventSourceTransactionContext.java:172)
at org.hibernate.engine.ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion(ActionQueue.java:543)
at org.hibernate.engine.ActionQueue.beforeTransactionCompletion(ActionQueue.java:216)
at org.hibernate.impl.SessionImpl.beforeTransactionCompletion(SessionImpl.java:571)
at org.hibernate.jdbc.JDBCContext.beforeTransactionCompletion(JDBCContext.java:250)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:138)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:656)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$afterReturning$org_springframework_transaction_aspectj_AbstractTransactionAspect$3$2a73e96c(AbstractTransactionAspect.aj:78)