As documented in FAQ, one of the ways to share classes between wars and other deployments
is to explictly put them in a domain, e.g. the DefaultDomain
However when the war is a subdeployment the AbstractClassLoaderDescribeDeployer is ignoring
the domain specified in the jboss-classloading.xml and using the deployment's unit name as the domain.
This is only true if you don't specify a parent-domain for the subdeployment's classloader.
But if you want to put the classloader in the "DefaultDomain" you can't specify the parent since it doesn't have one.