diff --git a/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java b/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java index 25364b0e0fd8..0cfccd5db223 100644 --- a/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java +++ b/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java @@ -108,12 +108,13 @@ public void init() throws ServletException _resourceService.setWelcomeFactory(_resourceService); _baseResource = servletContextHandler.getBaseResource(); + _resourceFactory = ResourceFactory.closeable(); + String rb = getInitParameter("baseResource", "resourceBase"); if (rb != null) { try { - _resourceFactory = ResourceFactory.closeable(); _baseResource = _resourceFactory.newResource(rb); } catch (Exception e)