diff --git a/src/main/java/winstone/HostConfiguration.java b/src/main/java/winstone/HostConfiguration.java index 51d8bbb1..31caca7b 100644 --- a/src/main/java/winstone/HostConfiguration.java +++ b/src/main/java/winstone/HostConfiguration.java @@ -182,6 +182,7 @@ public void postConfigure() throws Exception { getSessionHandler().getSessionCache().setEvictionPolicy(sessionEviction); } }; + wac.setServer(server); JettyWebSocketServletContainerInitializer.configure(wac, null); wac.getSecurityHandler().setLoginService(loginService); wac.setThrowUnavailableOnStartupException(