diff --git a/safekeeping-cxf/src/main/java/com/vmware/safekeeping/cxf/Cxf.java b/safekeeping-cxf/src/main/java/com/vmware/safekeeping/cxf/Cxf.java index c691d0e..2e8b543 100644 --- a/safekeeping-cxf/src/main/java/com/vmware/safekeeping/cxf/Cxf.java +++ b/safekeeping-cxf/src/main/java/com/vmware/safekeeping/cxf/Cxf.java @@ -351,13 +351,13 @@ private void create(final Vmbk vmbk, final boolean debug) this.jettyServer = new JettyHttpServer(this.serverlet, true); this.sapi = new SapiImpl(vmbk, debug, generateExtensionOptionsClass()); this.ep = Endpoint.create(this.sapi); + final ContextHandlerCollection collection1 = new ContextHandlerCollection(); + ServletContextHandler handler = new ServletContextHandler(serverlet, "/"); if (this.enableStatusPage) { - final ContextHandlerCollection collection1 = new ContextHandlerCollection(); - ServletContextHandler handler = new ServletContextHandler(serverlet, "/"); handler.addServlet(BlockingServletAsync.class, "/status"); - collection1.addHandler(handler); - this.serverlet.setHandler(collection1); } + collection1.addHandler(handler); + this.serverlet.setHandler(collection1); this.ep.publish(this.jettyServer.createContext(this.context)); }