adapted to Applications new dual init() and start() method scheme

This commit is contained in:
hns 2001-08-30 12:06:26 +00:00
parent 1367116bf1
commit 94201d2a8b

View file

@ -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);
} }