WebApp app = getWebApp();
if (app != null && ! hasConf) {
Path appDir = app.getRootDirectory();
DynamicClassLoader dynLoader = app.getEnvironmentClassLoader();
dynLoader.addLoader(new CompilingLoader(dynLoader, appDir.lookup("WEB-INF/classes")));
dynLoader.addLoader(new DirectoryLoader(dynLoader, appDir.lookup("WEB-INF/lib")));
Path webXml = appDir.lookup("WEB-INF/web.xml");
if (webXml.canRead()) {