[jboss-dev-forums] [Design of POJO Server] - Domain interaction when there is scoping

scott.stark@jboss.org do-not-reply at jboss.com
Mon Jan 28 04:16:15 EST 2008


The last problem I'm seeing with pulling the war deployer class loader creation into the WarClassLoaderDeployer is a failure for a war in a scoped sar to see classes from the sar. The sar has a separate ClassLoaderDomain resulting from a scoped sar LoaderRepositoryConfig being mapped by the HackClassloaderMetaDataDeployer. I'm not seeing any interaction between the sar ClassLoaderDomain and the default ClassLoaderDomain that the war class loader is associated with.

I guess the war class loader needs to be using the same ClassLoaderDomain as the sar.  The problem is, its not available in the DeploymentUnit. Only the ClassLoader and ClassloaderMetaData is. Although the domain name is in the ClassloaderMetaData, I don't have access to the ClassLoaderSystem to lookup the domain without setting it. I do happen to have access to this because the WarClassLoaderDeployer needs it for other reasons, but we need to make it easier for subdeployments to build class loader in the correct domain.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123960#4123960

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123960



More information about the jboss-dev-forums mailing list