Попробуйте так
public static void main(String[] args) throws Exception{
DefaultServlet defaultServlet = new DefaultServlett();
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.addServlet(new ServletHolder(defaultServlet ),"/");
ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setResourceBase("ui");
HandlerList handlers = new HandlerList();
handlers.setHandlers(new Handler[]{resourceHandler, context});
Server server = new Server(Constants.PORT);
server.setHandler(handlers);
server.start();
server.join();
}