Enable plain servlet root context.
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 17 Jul 2022 13:39:59 +0000 (15:39 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 17 Jul 2022 13:39:59 +0000 (15:39 +0200)
org.argeo.cms.lib.jetty/src/org/argeo/cms/jetty/JettyHttpServer.java

index ea9705720f82cccff5993b32f592f50986b88aa9..0eaaadb5f321924cbdee914cf6902119c0a7b50c 100644 (file)
@@ -93,13 +93,13 @@ public class JettyHttpServer extends HttpsServer {
                                configureRootContextHandler(rootContextHandler);
 //                     server.setHandler(rootContextHandler);
 
-                       ContextHandlerCollection contextHandlers = new ContextHandlerCollection();
+//                     ContextHandlerCollection contextHandlers = new ContextHandlerCollection();
                        if (rootContextHandler != null && !contexts.containsKey("/"))
-                               contextHandlers.addHandler(rootContextHandler);
-                       for (String contextPath : contexts.keySet()) {
-                               JettyHttpContext ctx = contexts.get(contextPath);
-                               contextHandlers.addHandler(ctx.getContextHandler());
-                       }
+                               contextHandlerCollection.addHandler(rootContextHandler);
+//                     for (String contextPath : contexts.keySet()) {
+//                             JettyHttpContext ctx = contexts.get(contextPath);
+//                             contextHandlers.addHandler(ctx.getContextHandler());
+//                     }
 
                        server.setHandler(contextHandlerCollection);