anonymous wrote : Caused by:
  | java.lang.ClassCastException: 
org.hibernate.search.event.FullTextIndexEventListener

I remember seeing this specific class, running into ClassCastException, in 
quite a number of posts. And incidentally, all those posts seem to complain 
that the same application works fine on 4.0.x and starts throwing exceptions on 
4.2.x.

I looked for this class in the hibernate jars and found that this specific 
class is located in the hibernate-annotations.jar. This jar is located in the 
server/< serverName>/lib folder. I *think* i am some what understanding what 
the problem might be. I believe, you do not have this  
hibernate-annotations.jar in the WEB-INF/lib folder. I would recommend that you 
include this hibernate-annotations.jar in the WEB-INF/lib folder of your 
application. At this point, i cant say which version of 
hibernate-annotations.jar should be included in your lib folder. It will depend 
on the version of hibernate your application is using. Currently JBoss-4.2.x 
ships with Version: 3.2.1.GA of this jar.

If including the (appropriate) version of hibernate-annotations.jar works for 
you (i.e. the classcast for FullTextIndexEventListener goes away) and in case 
you run into some other hibernate related classcast exception, then even 
include the (appropriate) version of hibernate-entitymanager.jar (again i found 
this jar in the server/< serverName>/lib folder) in the WEB-INF/lib folder of 
your app.

Hopefully, if things go well and you are able to get the application working in 
4.2.1, then i guess i will be able to explain the reason why you are running 
into this exception.

anonymous wrote : I guess you can reproduce this by setting up a Spring 
application that initializes some hibernate -related beans in it's config.xml 
during application startup.

I would love to try this out on my setup, but at this point i dont have a ready 
Spring application (actually i never have worked on Spring) which can be used. 
Well, i could download a sample application from somewhere but presently with 
other things at hand, its really hard. Maybe if you have a small app with can 
reproduce this problem, you can just mail it to jai_forums2005 AT yahoo DOT co 
DOT in



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094409#4094409

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094409
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to