String overrideDescriptor=getWebAppContext().getOverrideDescriptor(); if(overrideDescriptor!=null&&overrideDescriptor.length()>0) { PluginLog.getLog().debug("Applying override web.xml file at="+overrideDescriptor); Resource orideResource=Resource.newSystemResource(overrideDescriptor); if(orideResource==null) orideResource=Resource.newResource(overrideDescriptor);   _xmlParser.setValidating(false); configure(orideResource.getURL().toString()); PluginLog.getLog().debug("Finished applying override web.xml"); }
    public void configureWebApp() throws Exception     {        //cannot configure if the context is already started        if (getWebAppContext().isStarted())        {            PluginLog.getLog().error("Cannot configure webapp after it is started");            return;        }                PluginLog.getLog().debug("Started configuring web.xml, resource base="+webAppDir.getCanonicalPath());        getWebAppContext().setResourceBase(webAppDir.getCanonicalPath());        if (webXmlFile.exists())            configure(webXmlFile.toURL().toString());        PluginLog.getLog().debug("Finished configuring web.xml");                bindUserTransaction();        lockCompEnv();    }