adapted to Applications new dual init() and start() method scheme
This commit is contained in:
parent
1367116bf1
commit
94201d2a8b
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,7 @@ public class ApplicationManager {
|
||||||
if (server.websrv != null)
|
if (server.websrv != null)
|
||||||
app.setBaseURI ("/"+java.net.URLEncoder.encode (appName));
|
app.setBaseURI ("/"+java.net.URLEncoder.encode (appName));
|
||||||
// the application is initialized later in the register method, when it's bound
|
// the application is initialized later in the register method, when it's bound
|
||||||
app.start ();
|
app.init ();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Server.getLogger().log ("Error creating application "+appName+": "+x);
|
Server.getLogger().log ("Error creating application "+appName+": "+x);
|
||||||
x.printStackTrace ();
|
x.printStackTrace ();
|
||||||
|
@ -113,6 +113,7 @@ public class ApplicationManager {
|
||||||
server.websrv.addServlet ("/"+appName+"/", servlet);
|
server.websrv.addServlet ("/"+appName+"/", servlet);
|
||||||
server.websrv.addServlet ("/"+appName+"/*", servlet);
|
server.websrv.addServlet ("/"+appName+"/*", servlet);
|
||||||
}
|
}
|
||||||
|
app.start ();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Server.getLogger().log ("Couldn't register and start app: "+x);
|
Server.getLogger().log ("Couldn't register and start app: "+x);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue