threadPool.setMaxThreads(100);
server.setThreadPool(threadPool);
server.setConnectors(new Connector[]{connector});
handlers.setHandlers(new Handler[]{contexts,new DefaultHandler(),requestLogHandler});
server.setHandler(handlers);
context=new WebAppContext(contexts,dir.getAbsolutePath()+"/webapps/test","/test");
userRealm.setName("Test Realm");