ContextHandler context_handler = new ContextHandler();
context_handler.setContextPath("/");
context_handler.setServer(server);
server.setHandler(context_handler);
SessionHandler session_handler = new SessionHandler();
context_handler.setHandler(session_handler);
ServletHandler servlet_handler = new ServletHandler();
session_handler.setHandler(servlet_handler);
ServletHolder holder = new ServletHolder();
holder.setName("httpTunnel");
holder.setClassName(HttpTunnelServlet.class.getName());
servlet_handler.setServlets(new ServletHolder[] { holder });