Server server = new Server(port);
Context context = new Context(server, "/" + contextName, Context.SESSIONS);
// add servlet
context.addServlet(new ServletHolder(new XadoopServlet()), "/*");
context.addServlet(new ServletHolder(new ResourcesServlet()), "/resources/*");
context.addServlet(new ServletHolder(new ResourcesServlet()), "/upload/*");
// init
XadoopInit.init(context.getServletContext(), "props/", "upload/");
// start HTTP server