浏览代码

Ensuring right apis are called as per jetty version in branch2 (trunk has different jetty)

vrushali 7 年之前
父节点
当前提交
28c54989d6

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/WebApps.java

@@ -402,7 +402,7 @@ public class WebApps {
       HttpServer2 httpServer = webApp.httpServer();
       HttpServer2 httpServer = webApp.httpServer();
       if (ui2Context != null) {
       if (ui2Context != null) {
         addFiltersForNewContext(ui2Context);
         addFiltersForNewContext(ui2Context);
-        httpServer.addHandlerAtFront(ui2Context);
+        httpServer.addContext(ui2Context, true);
       }
       }
       try {
       try {
         httpServer.start();
         httpServer.start();