diff --git a/src/com/serotonin/mango/MangoContextListener.java b/src/com/serotonin/mango/MangoContextListener.java index bce8617457..cf017e61f2 100644 --- a/src/com/serotonin/mango/MangoContextListener.java +++ b/src/com/serotonin/mango/MangoContextListener.java @@ -100,7 +100,9 @@ public void contextInitialized(ServletContextEvent evt) { private void initialized(ServletContextEvent evt) { log.info("Scada-LTS context starting at: " + Common.getStartupTime()); - + + scriptContextInitialize(); + // Get a handle on the context. ServletContext ctx = evt.getServletContext(); @@ -160,8 +162,6 @@ private void initialized(ServletContextEvent evt) { reportsInitialize(); maintenanceInitialize(); - - scriptContextInitialize(); // Notify the event manager of the startup. SystemEventType.raiseEvent(new SystemEventType(