[jboss-user] [JBoss Microcontainer] - Re: Unable to tell JBoss to use Parent_Last=true

Ales Justin do-not-reply at jboss.com
Wed Dec 1 06:27:28 EST 2010

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

Start a new discussion in JBoss Microcontainer at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101201/1140bfdb/attachment.html 

More information about the jboss-user mailing list