Merge remote-tracking branch 'origin/master' into jetty-9.1

This commit is contained in:
Jan Bartel 2013-09-05 13:20:39 +10:00
commit 6fb95b8ad7
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ public class WebInfConfiguration extends AbstractConfiguration
context.getMetaData().addContainerResource(Resource.newResource(uri));
}
};
ClassLoader loader = context.getClassLoader();
ClassLoader loader = null;
if (context.getClassLoader() != null)
loader = context.getClassLoader().getParent();
while (loader != null && (loader instanceof URLClassLoader))
{
URL[] urls = ((URLClassLoader)loader).getURLs();