Hibernate Search error "Hibernate Search Event listeners not configured, please check the reference documentation and the application's hibernate.cfg.xml" in EAP 6.

Solution Verified - Updated -

Issue

  • Error when the application tries to use mass re-indexer:
    protected void processBatch() {
        EntityManager em = infoRequestDAO.getEntityManager();
        FullTextEntityManager fullTextEntityManager =
            org.hibernate.search.jpa.Search.getFullTextEntityManager(em);
        try {
            fullTextEntityManager
            .createIndexer(InfoRequest.class )
            .batchSizeToLoadObjects( 25 )
            .cacheMode( CacheMode.NORMAL )
            .threadsToLoadObjects( 5 )
            .idFetchSize( 150 )
            .startAndWait();
        } catch (InterruptedException e) {
            logMessage("There was a problem rebuilding the InfoRequest textual index:");
            logMessageException(e);
        }
    }
  • The error:
14:00:34,562 INFO  [gov.tag.ord.orms.background.starter.ReindexInfoRequestStarter] (http-localhost/127.0.0.1:8080-1) Starting the re-indexer:
14:00:34,576 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost/127.0.0.1:8080-1) #{homePage.reindexInfoRequestEvent}: org.hibernate.HibernateException: Hibernate Search Event listeners not configured, please check the reference documentation and the application's hibernate.cfg.xml: javax.faces.FacesException: #{homePage.reindexInfoRequestEvent}: org.hibernate.HibernateException: Hibernate Search Event listeners not configured, please check the reference documentation and the application's hibernate.cfg.xml

Which isn't supposed to be necessary any more since version 3.3.3. So, why we are getting this now?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • Hibernate Search

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.