[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem deploying a JPA web application

PeterJ do-not-reply at jboss.com
Tue Oct 2 11:43:37 EDT 2007


Ah yes, the ubiquitous class cast exception. The primary issue is identified by this text:

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

I bet anything that you have a Hibernate JAR file in your WAR file. Well, there is another Hibernate JAR file in server/xxx/lib. The object in question was created using the class definition in one of the JAR files, and now an attempt is being made to cast that object to the class as defined in the other JAR file.

The simple solution is to remove the Hibernate JAR file from your WAR file.

For other solutions and a full discussion, see http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingOverview


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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090731



More information about the jboss-user mailing list