Hibernate version: 3.2.3ga
Hibernate Annotation version: 3.3.0ga
Full stack trace of any exception that occurs: java.lang.ClassCastException: org.hibernate.search.event.FullTextIndexEventListener at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.jav a:856) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSession FactoryBean.java:798) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessi onFactoryBean.java:738)
I have a sessionFactory and my webapp works fine in jetty. However, When I copy the war file and deploy into jboss, it is throwing the above exception. I checked through the code in AnnotationConfiguration and it is doing,
newListeners[length-1] = (PostInsertEventListener) searchEventListener;
Can someone tell me if i am missing something here? The sessionFactory is just an annotation based one (working perfectly fine in jetty)
|