From 01a7123cac594f739275829816b5e07f5ab6ff1d Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 12 Dec 2003 11:10:12 +0000 Subject: [PATCH] Set application base uri to mountpoint in start() rather than in bind() so it is set when onStart() function is executed. --- src/helma/main/ApplicationManager.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/helma/main/ApplicationManager.java b/src/helma/main/ApplicationManager.java index 17635b9a..d02d8034 100644 --- a/src/helma/main/ApplicationManager.java +++ b/src/helma/main/ApplicationManager.java @@ -336,6 +336,12 @@ public class ApplicationManager implements XmlRpcHandler { // the application is started later in the register method, when it's bound app.init(); + + // set application URL prefix if it isn't set in app.properties + if (!app.hasExplicitBaseURI()) { + app.setBaseURI(mountpoint); + } + app.start(); } catch (Exception x) { Server.getLogger().error("Error creating application " + appName + ": " + x); @@ -372,10 +378,6 @@ public class ApplicationManager implements XmlRpcHandler { // bind to Jetty HTTP server if (server.http != null) { - // if using embedded webserver (not AJP) set application URL prefix - if (!app.hasExplicitBaseURI()) { - app.setBaseURI(mountpoint); - } HttpContext context = server.http.addContext(pathPattern);