-
1. Re: Isolated Classloader with JPA (java.lang.ClassCastExcept
fhh Jun 15, 2007 8:08 AM (in response to felderr)Well, I am not a jboss and memeber and everything but an expert on class loading but shouldn't you be able to simply remove the (now uneeded) Hibernate libs from the EAR?
Regards
Felix -
2. Re: Isolated Classloader with JPA (java.lang.ClassCastExcept
felderr Jun 15, 2007 9:17 AM (in response to felderr)If I remove them everthing would work fine! But that would lead to the problem that all EAR Projects on the production server use the same Hibernate version. On our production machine we have about 20 projects using different versions of hibernate (some still use hibernate 2).
Some other projects are evaluating toplink. I don't want to set up a new JBoss Instance for every version of any JPA Provider in use on our server.
If that would be the case I would reccomend to step back to using hibernate without JPA.
You could also remove the classloader isolation with all the drawbacks you will have.
But thanks for the response!