diff --git a/jetty-ee9/jetty-ee9-webapp/src/main/java/org/eclipse/jetty/ee9/webapp/MetaInfConfiguration.java b/jetty-ee9/jetty-ee9-webapp/src/main/java/org/eclipse/jetty/ee9/webapp/MetaInfConfiguration.java index 010db64dbd4..c040bfa028b 100644 --- a/jetty-ee9/jetty-ee9-webapp/src/main/java/org/eclipse/jetty/ee9/webapp/MetaInfConfiguration.java +++ b/jetty-ee9/jetty-ee9-webapp/src/main/java/org/eclipse/jetty/ee9/webapp/MetaInfConfiguration.java @@ -148,7 +148,13 @@ public class MetaInfConfiguration extends AbstractConfiguration Consumer addContainerResource = (uri) -> { Resource resource = _resourceFactory.newResource(uri); - context.getMetaData().addContainerResource(resource); + if (resource == null || !resource.exists()) + { + if (LOG.isDebugEnabled()) + LOG.debug("Classpath URI doesn't exist: " + uri); + } + else + context.getMetaData().addContainerResource(resource); }; List containerUris = getAllContainerJars(context);