// set up the context for "/static/*"
String appDir = getWebAppsPath();
HttpContext staticContext = new HttpContext();
staticContext.setContextPath("/static/*");
staticContext.setResourceBase(appDir + "/static");
staticContext.addHandler(new ResourceHandler());
webServer.addContext(staticContext);
// set up the context for "/" jsp files
webAppContext =
webServer.addWebApplication("/", appDir + File.separator + name);