GRoK This!

Tuesday Mar 13, 2007

ClassCastException, IncompatibleClassChangeError

So while on an enforced vacation from work, I decided to try and get some software projects done, specifically, Dr Dee. I did have something running on JBoss 3.2.3, but now I've upgraded to JBoss 4.0.4 and now I'm getting weird errors. It took a lot of wailing and gnashing of teeth and pulling of hair, but I found out what was happening. The new version of JBoss has a Hibernate service built in. As part of that, the hibernate3.jar is included in the server/default/lib directory. This put it in conflict with my hibernate-3.1.3.jar that I was compiling with. JBoss has its own set of troublesome class loading issues, I've found out, but the simple solution for me was to set Java2ClassLoadingCompliance to true in the server\default\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml file. Now that that problem is dealt with, I can get on with the true task of writing the code.

Comments:

Post a Comment:
  • HTML Syntax: Allowed

Calendar

Feeds

Search

Links

Navigation

Referers