Connector connector = new SelectChannelConnector();
connector.setPort(Integer.getInteger("jetty.port",8080).intValue());
server.setConnectors(new Connector[]{connector});
server.setHandler(webapp);
server.start();
server.join();
}
private static String webdefaultPath() throws Exception {
String path = System.getProperty("jetty.home", System.getProperty("java.io.tmpdir")) + System.getProperty("file.separator") + "webdefault.xml";
FileOutputStream out = new FileOutputStream(path);