Refine search
@Override public Class<?> loadClass(String name) throws ClassNotFoundException { if (_notFound.contains(name)) { if (LOG.isDebugEnabled()) LOG.debug("Not found cache hit resource {}",name); throw new ClassNotFoundException(name+": in notfound cache"); } try { return super.loadClass(name); } catch (ClassNotFoundException nfe) { if (_notFound.add(name)) if (LOG.isDebugEnabled()) { LOG.debug("Caching not found {}",name); LOG.debug(nfe); } throw nfe; } }
: _locations.isIncludedAndNotExcluded(location); if (LOG.isDebugEnabled()) LOG.debug("match {} from {} byName={} byLocation={} in {}",clazz,location,byName,byLocation,this); LOG.warn(e);
private void setFailed(Throwable th) { _state = __FAILED; if (LOG.isDebugEnabled()) LOG.warn(FAILED+" " + this+": "+th,th); for (Listener listener : _listeners) listener.lifeCycleFailure(this,th); }
@Override public boolean isSystemResource(String name, URL url) { if (_systemClasses == null) loadSystemClasses(); boolean result = _systemClasses.match(name,url); if (LOG.isDebugEnabled()) LOG.debug("isSystemResource=={} {} {}",result,name,url); return result; }
if (LOG.isDebugEnabled()) LOG.debug("{} in mapping {} from defaults descriptor is overridden by ",ps,sm,servletName); LOG.warn("Duplicate mapping from {} to {}", p, servletName); if (LOG.isDebugEnabled()) LOG.debug("Removed empty mapping {}",sm); listItor.remove(); if (LOG.isDebugEnabled()) LOG.debug("Removed path {} from mapping {}", p,sm); if (LOG.isDebugEnabled()) LOG.debug("Added mapping {} ",mapping); _servletMappings.add(mapping); return mapping;
if (LOG.isDebugEnabled()) LOG.warn("Couldn't stop {}{}", unstopped, dmp.toString()); LOG.warn("{} Couldn't stop {}",this,unstopped);
if (LOG.isDebugEnabled()) LOG.debug("Not found cache hit resource {}",name); return null; if (LOG.isDebugEnabled()) LOG.debug("Caching not found resource {}",name); _notFound.add(name);
if(LOG.isDebugEnabled()) LOG.debug("addJar - {}", fn); String fnlc=fn.getName().toLowerCase(Locale.ENGLISH); LOG.warn(Log.EXCEPTION,ex);
@Override public boolean isSystemClass(Class<?> clazz) { if (_systemClasses == null) loadSystemClasses(); boolean result = _systemClasses.match(clazz); if (LOG.isDebugEnabled()) LOG.debug("isSystemClass=={} {}",result,clazz); return result; }
LOG.warn(new Throwable()); // TODO throw ISE? if (LOG.isDebugEnabled()) LOG.debug("ContextParam: " + name + "=" + value);
@Override public boolean isServerClass(Class<?> clazz) { if (_serverClasses == null) loadServerClasses(); boolean result = _serverClasses.match(clazz); if (LOG.isDebugEnabled()) LOG.debug("isServerClass=={} {}",result,clazz); return result; }
LOG.debug(web_app + " anti-aliased to " + web_app.getAlias()); web_app = context.newResource(web_app.getAlias()); if (LOG.isDebugEnabled()) LOG.debug("Try webapp=" + web_app + ", exists=" + web_app.exists() + ", directory=" + web_app.isDirectory()+" file="+(web_app.getFile())); LOG.debug("Copy " + web_app + " to " + extractedWebAppDir); web_app.copyTo(extractedWebAppDir); LOG.warn("Web application not found " + war); throw new java.io.FileNotFoundException(war); if (LOG.isDebugEnabled()) LOG.debug("webapp=" + web_app); if (LOG.isDebugEnabled()) LOG.debug("context.resourcebase = "+rc);
@Override public boolean isServerResource(String name, URL url) { if (_serverClasses == null) loadServerClasses(); boolean result = _serverClasses.match(name,url); if (LOG.isDebugEnabled()) LOG.debug("isServerResource=={} {} {}",result,name,url); return result; }
LOG.debug("Cannot configure webapp after it is started"); return; LOG.debug("Configuring web-jetty.xml"); if(LOG.isDebugEnabled()) LOG.debug("Configure: "+jetty); LOG.warn("Error applying {}",jetty); throw e;
if (LOG.isDebugEnabled()) LOG.debug(_xml.toString()+": Calculated metadatacomplete = " + _metaDataComplete + " with version=" + version);
LOG.warn(new Throwable()); // TODO throw ISE? LOG.warn(new Throwable()); // TODO throw ISE? if (s.startsWith("t")) LOG.warn("Deprecated boolean load-on-startup. Please use integer"); order = 1; if (roleName != null && roleName.length() > 0 && roleLink != null && roleLink.length() > 0) if (LOG.isDebugEnabled()) LOG.debug("link role " + roleName + " to " + roleLink + " for " + this); switch (context.getMetaData().getOrigin(name+".servlet.role-name."+roleName))
if (LOG.isDebugEnabled()) LOG.debug("getResources {} {}",name,resources);
protected void notComplete(Blocker blocker) { LOG.warn("Blocker not complete {}",blocker); if (LOG.isDebugEnabled()) LOG.debug(new Throwable()); }
public void makeTempDirectory (File parent, WebAppContext context) throws Exception { if (parent == null || !parent.exists() || !parent.canWrite() || !parent.isDirectory()) throw new IllegalStateException("Parent for temp dir not configured correctly: "+(parent==null?"null":"writeable="+parent.canWrite())); //Create a name for the webapp String temp = getCanonicalNameForWebAppTmpDir(context); File tmpDir = null; if (context.isPersistTempDirectory()) { //if it is to be persisted, make sure it will be the same name //by not using File.createTempFile, which appends random digits tmpDir = new File (parent, temp); } else { //ensure file will always be unique by appending random digits tmpDir = File.createTempFile(temp, ".dir", parent); //delete the file that was created tmpDir.delete(); //and make a directory of the same name tmpDir.mkdirs(); } configureTempDirectory(tmpDir, context); if(LOG.isDebugEnabled()) LOG.debug("Set temp dir "+tmpDir); context.setTempDirectory(tmpDir); }
@Override public void succeeded() { _lock.lock(); try { if (_state == null) { _state = SUCCEEDED; _complete.signalAll(); } else { LOG.warn("Succeeded after {}",_state.toString()); if (LOG.isDebugEnabled()) LOG.debug(_state); } } finally { _lock.unlock(); } }