server.setConnectors( new Connector[] { defaultConnector } );
WebAppContext webapp = createWebApplication();
webapp.setServer( server );
DefaultHandler defaultHandler = new DefaultHandler();
defaultHandler.setServer( server );
Handler[] handlers = new Handler[2];
handlers[0] = webapp;
handlers[1] = defaultHandler;
server.setHandlers( handlers );