433708 Improve WebAppClassLoader.addClassPath() IllegalStateException message
This commit is contained in:
parent
5635f02235
commit
f8c1f70b75
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue