//The second element of the HandlerCollection is a DefaultHandler
//which is responsible for serving static content or anything not
//handled by a Handler in the ContextHandlerCollection.
//The third element is the RequestLogHandler, which requires
//a RequestLog impl to be set.
DefaultHandler defaultHandler = new DefaultHandler();
Handler[] handlers = {contextHandlerCollection, defaultHandler, requestLogHandler, statsHandler};
HandlerCollection handlerCollection = new HandlerCollection();
handlerCollection.setHandlers(handlers);
server.setHandler(handlerCollection);