4 Replies Latest reply on Jul 15, 2011 9:53 AM by Carlos Barbero

    Hibernate Search - Jboss 7

    Carlos Barbero Newbie

      Hi I am having a problem to use Hibernate Search in jboss7, an error is happening,can someone help me:

       

      java.lang.ClassCastException: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.classic.Session

      16:41:42,286 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.hibernate.search.impl.FullTextSessionImpl.<init>(FullTextSessionImpl.java:105)

      16:41:42,286 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.hibernate.search.Search.getFullTextSession(Search.java:45)

      16:41:42,286 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.getFullTextSession(FullTextEntityManagerImpl.java:71)

      16:41:42,286 ERROR [stderr] (http--127.0.0.1-8080-5)           at org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.createFullTextQuery(FullTextEntityManagerImpl.java:100)

      16:41:42,287 ERROR [stderr] (http--127.0.0.1-8080-5)           at br.com.serasa.central.core.indexacao.IndexadorBean.pesquisarNoTemp(IndexadorBean.java:93)

      16:41:42,287 ERROR [stderr] (http--127.0.0.1-8080-5)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:41:42,287 ERROR [stderr] (http--127.0.0.1-8080-5)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      16:41:42,287 ERROR [stderr] (http--127.0.0.1-8080-5)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:41:42,287 ERROR [stderr] (http--127.0.0.1-8080-5)           at java.lang.reflect.Method.invoke(Method.java:597)