YARN-11597. Fix NPE when loading static files in SLSWebApp (#6216) Contributed by Junfan Zhang.
Reviewed-by: Shilun Fan <slfan1989@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
parent
7ec636deec
commit
e4eda40ac9
@ -136,6 +136,7 @@ public void start() throws Exception {
|
|||||||
String webRootDir = getClass().getClassLoader().getResource("html").
|
String webRootDir = getClass().getClassLoader().getResource("html").
|
||||||
toExternalForm();
|
toExternalForm();
|
||||||
staticHandler.setResourceBase(webRootDir);
|
staticHandler.setResourceBase(webRootDir);
|
||||||
|
staticHandler.start();
|
||||||
|
|
||||||
Handler handler = new AbstractHandler() {
|
Handler handler = new AbstractHandler() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user