Set implicit baseURI in bind() in addition to start() so that Hrefs are correct
after an application was remounted.
This commit is contained in:
parent
53a34d861a
commit
3a4877f84b
1 changed files with 5 additions and 1 deletions
|
@ -90,7 +90,6 @@ public class ApplicationManager implements XmlRpcHandler {
|
||||||
ndesc.app = appDesc.app;
|
ndesc.app = appDesc.app;
|
||||||
ndesc.bind();
|
ndesc.bind();
|
||||||
descriptors.put(ndesc.appName, ndesc);
|
descriptors.put(ndesc.appName, ndesc);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception mx) {
|
} catch (Exception mx) {
|
||||||
|
@ -371,6 +370,11 @@ public class ApplicationManager implements XmlRpcHandler {
|
||||||
Naming.rebind("//:" + rmiPort + "/" + appName, new RemoteApplication(app));
|
Naming.rebind("//:" + rmiPort + "/" + appName, new RemoteApplication(app));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set application URL prefix if it isn't set in app.properties
|
||||||
|
if (!app.hasExplicitBaseURI()) {
|
||||||
|
app.setBaseURI(mountpoint);
|
||||||
|
}
|
||||||
|
|
||||||
// bind to Jetty HTTP server
|
// bind to Jetty HTTP server
|
||||||
if (server.http != null) {
|
if (server.http != null) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue