-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Session Factory throwing ClassCastException on startup
PostPosted: Mon May 14, 2007 9:31 am 
Newbie

Joined: Mon Nov 21, 2005 6:15 am
Posts: 14
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.