Hello
I was doing some debug in the AbstractWebContainer when i came across this piece of code in the parseWebAppDescriptors method.
// Create a java:comp/env environment unique for the web application
log.debug("Creating ENC using ClassLoader: "+loader);
ClassLoader parent = loader.getParent();
while( parent != null )
{
log.debug(".."+parent);
parent = parent.getParent();
}
currentThread.setContextClassLoader(loader);
metaData.setENCLoader(loader);
envCtx = (Context) iniCtx.lookup("java:comp");
Its debugging information.