[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool
flavia.rainone@jboss.com
do-not-reply at jboss.com
Tue Oct 27 23:07:41 EDT 2009
The cause of the failure is that ClassPoolDomain was not copying the structure of a domain when the domain's parent is a ClassLoaderToLoader adapter.
I have committed a temporary ugly hack, but I need to figure out how can I retrieve the classLoader in this scenario:
if (domain.getParent() instanceof ClassLoaderToLoaderAdapter)
| {
| // how to get the domain.getParent()'s classloader???
| ClassLoader loader = ...;
| ClassPool parentPool = ClassPoolRepository.getInstance().registerClassLoader(loader);
| poolDomain = new JBossClClassPoolDomain(domain.getName(), parentPool, domain.getParentPolicy(), registry);
| }
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262546#4262546
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262546
More information about the jboss-dev-forums
mailing list