jetty.project/jetty-ee10/jetty-ee10-servlet
Christian Kohlschütter 6d075a4c17 ee10: DefaultServlet should initialize ResourceFactory unconditionally
Currently, unlike ee9 and ee8, ee10's DefaultServlet initializes
_resourceFactory  only when either "baseResource" or "resourceBase" are
set as init parameters.

In embedded jetty, the resource base can also be set using
ContextHandler#setBaseResource(Resource), which means that
DefaultServlet would not initialize correctly and therefore prevent
operations like overriding the jetty-dir.css stylesheet by throwing an
otherwise unexplicable NullPointerException.

Change ee10 DefaultServlet to always initialize ResourceFactory, like
the ee9 and ee8 variants do.

Signed-off-by: Christian Kohlschütter <christian@kohlschutter.com>
2023-01-09 18:31:10 +01:00
..
src ee10: DefaultServlet should initialize ResourceFactory unconditionally 2023-01-09 18:31:10 +01:00
pom.xml Jetty 12.0.x update jakarta api versions (#8192) 2022-06-22 10:32:54 +10:00