if (Log.isDebugEnabled()) { Log.debug("Thread Context class loader is: " + parent); for (ClassLoader loader = parent.getParent(); loader != null; loader = loader.getParent()) { Log.debug("Parent class loader is: " + loader); } }
    protected void doStart() throws Exception    {        // Setup configurations         loadConfigurations();                for (int i=0;i<_configurations.length;i++)            _configurations[i].setWebAppContext(this);                // Configure classloader        _ownClassLoader=false;        if (getClassLoader()==null)        {            ClassLoader parent = Thread.currentThread().getContextClassLoader();            if (parent==null)                parent=this.getClass().getClassLoader();            if (parent==null)                parent=ClassLoader.getSystemClassLoader();                        WebAppClassLoader classLoader = new WebAppClassLoader(parent,this);            setClassLoader(classLoader);            _ownClassLoader=true;        }                for (int i=0;i<_configurations.length;i++)            _configurations[i].configureClassLoader();        getTempDirectory();                super.doStart();    }