Commit 8c64d9de authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Loading of plugins now work after setup has been finished.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3089 b35dd754-fafc-0310-a699-88a17e54d16e
parent c0b600aa
...@@ -283,7 +283,6 @@ public class XMPPServer { ...@@ -283,7 +283,6 @@ public class XMPPServer {
} }
// Make sure that setup finished correctly. // Make sure that setup finished correctly.
if ("true".equals(JiveGlobals.getXMLProperty("setup"))) { if ("true".equals(JiveGlobals.getXMLProperty("setup"))) {
setupMode = false;
// Set the new server domain assigned during the setup process // Set the new server domain assigned during the setup process
name = JiveGlobals.getProperty("xmpp.domain"); name = JiveGlobals.getProperty("xmpp.domain");
...@@ -314,6 +313,8 @@ public class XMPPServer { ...@@ -314,6 +313,8 @@ public class XMPPServer {
initModules(); initModules();
// Start all the modules // Start all the modules
startModules(); startModules();
// Initialize component manager (initialize before plugins get loaded)
InternalComponentManager.getInstance().start();
} }
catch (Exception e) { catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
...@@ -325,6 +326,8 @@ public class XMPPServer { ...@@ -325,6 +326,8 @@ public class XMPPServer {
// Use the correct class loader. // Use the correct class loader.
finishSetup.setContextClassLoader(loader); finishSetup.setContextClassLoader(loader);
finishSetup.start(); finishSetup.start();
// We can now safely indicate that setup has finished
setupMode = false;
} }
} }
...@@ -342,9 +345,10 @@ public class XMPPServer { ...@@ -342,9 +345,10 @@ public class XMPPServer {
initModules(); initModules();
// Start all the modules // Start all the modules
startModules(); startModules();
} // Initialize component manager (initialize before plugins get loaded)
// Load plugins. First, initialize component manager.
InternalComponentManager.getInstance().start(); InternalComponentManager.getInstance().start();
}
// Load plugins (when in setup mode only the admin console will be loaded)
File pluginDir = new File(messengerHome, "plugins"); File pluginDir = new File(messengerHome, "plugins");
pluginManager = new PluginManager(pluginDir); pluginManager = new PluginManager(pluginDir);
pluginManager.start(); pluginManager.start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment