server.setStopAtShutdown( true );
// Initialize the servlets
ContextHandlerCollection contexts = new ContextHandlerCollection();
server.setHandler(contexts);
WebAppContext lcfCrawlerUI = new WebAppContext(crawlerWarPath,"/mcf-crawler-ui");
// This can cause jetty to ignore all of the framework and jdbc jars in the war, which is what we
// want in the single-process case.
lcfCrawlerUI.setParentLoaderPriority(useParentLoader);
contexts.addHandler(lcfCrawlerUI);
WebAppContext lcfAuthorityService = new WebAppContext(authorityServiceWarPath,"/mcf-authority-service");
// This can cause jetty to ignore all of the framework and jdbc jars in the war, which is what we
// want in the single-process case.
lcfAuthorityService.setParentLoaderPriority(useParentLoader);
contexts.addHandler(lcfAuthorityService);
WebAppContext lcfApi = new WebAppContext(apiWarPath,"/mcf-api-service");
// This can cause jetty to ignore all of the framework and jdbc jars in the war, which is what we
// want in the single-process case.
lcfApi.setParentLoaderPriority(useParentLoader);
contexts.addHandler(lcfApi);
}