log.debug("Unable to retrieve classloader for deployment: " + unit.getName() + " reason=" + e.toString());
}
}
KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
//Make sure that the metadata from the deployment gets put into the context
ScopeInfo scopeInfo = context.getScopeInfo();
if (scopeInfo != null)
{
mergeScopes(scopeInfo.getScope(), unit.getScope());
mergeScopes(scopeInfo.getMutableScope(), unit.getMutableScope());
}
// KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
// ScopeInfo scopeInfo2 = context.getScopeInfo();
// if (scopeInfo2 != null)