"../jetty/shuttl.xml").toURI().toURL());
configuration.configure(server);
// TODO: Replace paths relative to /bin/
server.setHandler(new WebAppContext("../webapps/shuttl", "/shuttl"));
ShuttlServer servermbean = new ShuttlServer();
Connector connectors[] = server.getConnectors();
for (Connector c : connectors) {
logger.debug("Connector Name: " + c.getName());
logger.debug(" host: " + c.getHost());
logger.debug(" port: " + c.getPort());
if (c.getName().equals("Splunk.Shuttl.Http")) {
c.setPort(servermbean.getHttpPort());
}
}
StartUpCleaner.create().clean();
server.start();
} catch (Exception e) {