433708 Improve WebAppClassLoader.addClassPath() IllegalStateException message
This commit is contained in:
parent
5635f02235
commit
f8c1f70b75
jetty-webapp/src/main/java/org/eclipse/jetty/webapp
|
@ -242,7 +242,11 @@ public class WebAppClassLoader extends URLClassLoader
|
||||||
else if (resource.isDirectory())
|
else if (resource.isDirectory())
|
||||||
addURL(resource.getURL());
|
addURL(resource.getURL());
|
||||||
else
|
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