Ensure context path is also setup when running with the distribution

This commit is contained in:
Eric Charles 2015-11-19 09:45:20 +01:00
parent 70194fc378
commit 37e07f9379

View file

@ -230,12 +230,12 @@ public class ZeppelinServer extends Application {
ZeppelinConfiguration conf) {
WebAppContext webApp = new WebAppContext();
webApp.setContextPath(conf.getServerContextPath());
File warPath = new File(conf.getString(ConfVars.ZEPPELIN_WAR));
if (warPath.isDirectory()) {
// Development mode, read from FS
// webApp.setDescriptor(warPath+"/WEB-INF/web.xml");
webApp.setResourceBase(warPath.getPath());
webApp.setContextPath(conf.getServerContextPath());
webApp.setParentLoaderPriority(true);
} else {
// use packaged WAR