433708 Improve WebAppClassLoader.addClassPath() IllegalStateException message

This commit is contained in:
Jan Bartel 2014-05-06 10:00:40 +02:00
parent 5635f02235
commit f8c1f70b75
1 changed files with 5 additions and 1 deletions

View File

@ -242,7 +242,11 @@ public class WebAppClassLoader extends URLClassLoader
else if (resource.isDirectory())
addURL(resource.getURL());
else
throw new IllegalArgumentException("!file: "+resource);
{
if (LOG.isDebugEnabled())
LOG.debug("Check file exists and is not nested jar: "+resource);
throw new IllegalArgumentException("File not resolvable or incompatible with URLClassloader: "+resource);
}
}
}
}