diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ExampleServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ExampleServer.java index 61e4ecca194..54e1261f824 100644 --- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ExampleServer.java +++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ExampleServer.java @@ -37,8 +37,9 @@ public class ExampleServer server.setConnectors(new Connector[] { connector }); ServletContextHandler context = new ServletContextHandler(); - context.setContextPath("/hello"); - context.addServlet(HelloServlet.class, "/"); + context.setContextPath("/"); + context.addServlet(HelloServlet.class, "/hello"); + context.addServlet(AsyncEchoServlet.class, "/echo/*"); HandlerCollection handlers = new HandlerCollection(); handlers.setHandlers(new Handler[] { context, new DefaultHandler() });