mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Ensure context path is also setup when running with the distribution
This commit is contained in:
parent
70194fc378
commit
37e07f9379
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue