Ales Justin [
http://community.jboss.org/people/alesj] created the discussion
"Re: Unable to tell JBoss to use Parent_Last=true"
To view the discussion, visit:
http://community.jboss.org/message/573835#573835
--------------------------------------------------------------
war / web deployments are by default child first (parent-first=false), see servlet spec.
How do you know that the wrong Hibernate classes are picked up?
Can you try this with the latest JBossAS6_CR1?
My guess is that the Hibernate classes are picked up from CL domain's cache.
See ClassLoaderDomain::checkCacheAfter.
You will have to change the CL domain's parent policy,
so that "after" filter also filters out Hibernate packages / classes.
This feature is already available in AS6_CR1, under
https://jira.jboss.org/browse/JBDEPLOY-266 https://jira.jboss.org/browse/JBDEPLOY-266.
*
http://community.jboss.org/docs/DOC-13178
http://community.jboss.org/wiki/JBoss5custommetadatafiles (see
jboss-classloading-domain.xml)
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/573835#573835]
Start a new discussion in JBoss Microcontainer at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]