I tried upgrading our application to Hibernate 3 with poor results on Jboss 4.0.2. I get class cast exceptions on the CGLIB ... the fix according to Hibernate is to set lazy="false". This works in the test cases but not when I deploy it to Hibernate.
BTW I am using the Hibernate service deployer which *has* the Hibernate3.jar inside it. It doesn't look like its working though.
I'm using 4.0.2 and the EJB3.0 Preview 5. Hibernate 3 is bundled with this it appears. The first problem I faced was not updating the mapping files to the 3.0 DTD when upgrading to Hibernate 3. See http://www.jboss.org:8080/index.html?module=bb&op=viewtopic&t=63656
for more details.
Right now everything seems to work, up to the point where an update or save occurs and then nothing is written to the database. No errors or complaints at any debugging level. Ahhh!
I'm going to test the current Hibernate3 deployer download today in my configuration.
sblezard - I'm getting the same class cast exception - was this ever bugged and if so, was it fixed? Or did you figure out a work around?