Estou com dificuldade para configurar o Hibernate Search,
hibernate.cfg:
true true true 1, false 0, yes 'S', no 'N' org.apache.derby.jdbc.ClientDriver <property name="connection.url">jdbc:derby://localhost:1527/interred;create=true</property>
<property name="connection.username">APP</property>
<property name="connection.password">APP</property>
<property name="connection.pool_size">1</property>
<property name="connection.datasource">java:comp/env/jdbc/InterRed</property>
<property name="connection.provider_class">com.powerlogic.jcompany.persistencia.hibernate.PlcConnectionProvider</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<property name="current_session_context_class">thread</property>
<property name="statement_cache.size">0</property>
<property name="jdbc.batch_size">0</property>
<property name="connection.charSet">utf-8</property>
<property name="hibernate.max_fetch_depth">2</property>
<property name="use_outer_join">true</property>
<property name="format_sql">true</property>
<property name="dialect">org.hibernate.dialect.DerbyDialect</property>
<property name="plc.manyToOneLazyOtimiza">S</property>
<property name="plc.updateOtimiza">S</property>
<property name="plc.autoDetectDialect">S</property>
<property name="plc.auditoriaRigida">S</property>
<property name="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</property>
<property name="hibernate.search.default.indexBase">C:\bibliotecas\lib\index</property>
<event type="post-update">
<listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
</event>
<event type="post-insert">
<listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
</event>
<event type="post-delete">
<listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
</event>
ao add os eventos gera o seguinte erro:
The content of element type “session-factory” must match “(property*,mapping*,(class-cache| collection-cache),event,listener*)”.
org.xml.sax.SAXParseException: The content of element type “session-factory” must match “(property*,mapping*,(class-cache|collection-cache),event,listener*)”.
at com.powerlogic.jcompany.persistencia.hibernate.PlcBaseHibernateManager.registraFabrica (PlcBaseHibernateManager.java:114)
at com.powerlogic.jcompany.persistencia.hibernate.PlcHibernateManagerLocator.setHibernateManagerClasse(PlcHibernateManagerLocator.java:60)
at com.powerlogic.jcompany.persistencia.hibernate.PlcHibernateManagerLocator.getHibernateManagerClasse (PlcHibernateManagerLocator.java:115)
at com.powerlogic.jcompany.persistencia.hibernate.PlcBaseHibernateDAO.rollback(PlcBaseHibernateDAO.java:361)
at com.powerlogic.jcompany.modelo.PlcAopModeloCallbackService.interceptExcecao (PlcAopModeloCallbackService.java:126)
at com.powerlogic.jcompany.comuns.aop.PlcAopBaseCallback.intercept(PlcAopBaseCallback.java:57)
at br.cefet.interred.facade.AppFacadeImpl$$EnhancerByCGLIB$$e0109cbb.recuperaListaSimples ()
at com.powerlogic.jcompany.controle.service.PlcClasseLookupService.recuperaUmaClasseLookupDaPersistenciaParaCache(PlcClasseLookupService.java:155)
at com.powerlogic.jcompany.controle.service.PlcClasseLookupService.recuperaClassesLookupDaPersistenciaParaCache (PlcClasseLookupService.java:268)
at com.powerlogic.jcompany.controle.listener.PlcServletContextListener.ciCarregaClassesLookup(PlcServletContextListener.java:565)
at com.powerlogic.jcompany.controle.listener.PlcServletContextListener.contextInitialized (PlcServletContextListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1089)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1187)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :292)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1305)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren (ContainerBase.java:1569)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run (ContainerBase.java:1558)
at java.lang.Thread.run(Thread.java:595)
Alguém que já usou o Hibernate Search tem alguma sugestão ?