diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java index fe426c649bf774..ce374d92553210 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/KnownPathResourceManager.java @@ -16,6 +16,8 @@ import java.util.SortedSet; import java.util.TreeSet; +import org.jboss.logging.Logger; + import io.undertow.httpcore.OutputChannel; import io.undertow.server.HttpServerExchange; import io.undertow.server.handlers.resource.Resource; @@ -25,6 +27,8 @@ public class KnownPathResourceManager implements ResourceManager { + private static final Logger log = Logger.getLogger(KnownPathResourceManager.class); + public static final boolean IS_WINDOWS = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("windows"); private final NavigableSet files; @@ -144,10 +148,12 @@ public List list() { try { Resource resource = underlying.getResource(i); if (resource == null) { - throw new RuntimeException("Unable to get listed resource " + i + " from directory " + path - + " for path " + slashPath + " from underlying manager " + underlying); + log.warnv( + "Unable to get listed resource {0} from directory '{1}' for path '{2}' from underlying manager {3}", + i, path, slashPath, underlying); + } else { + ret.add(resource); } - ret.add(resource); } catch (IOException e) { throw new UncheckedIOException(e); }