From db4cce8161a55c764d3eb669c500ff9a29bce4ff Mon Sep 17 00:00:00 2001 From: WalkerWatch Date: Thu, 29 Sep 2016 10:13:35 -0400 Subject: [PATCH] Resolves #943 Signed-off-by: WalkerWatch --- .../src/main/java/org/eclipse/jetty/embedded/FileServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java index 135c3224996..f2381378d87 100644 --- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java +++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FileServer.java @@ -50,6 +50,7 @@ public class FileServer // Add the ResourceHandler to the server. HandlerList handlers = new HandlerList(); handlers.setHandlers(new Handler[] { resource_handler, new DefaultHandler() }); + server.setHandler(handlers); // Start things up! By using the server.join() the server thread will join with the current thread. // See "http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.html#join()" for more details.