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 {
}
// Make sure that setup finished correctly.
if ("true".equals(JiveGlobals.getXMLProperty("setup"))) {
setupMode = false;
// Set the new server domain assigned during the setup process
name = JiveGlobals.getProperty("xmpp.domain");
......@@ -314,6 +313,8 @@ public class XMPPServer {
initModules();
// Start all the modules
startModules();
// Initialize component manager (initialize before plugins get loaded)
InternalComponentManager.getInstance().start();
}
catch (Exception e) {
e.printStackTrace();
......@@ -325,6 +326,8 @@ public class XMPPServer {
// Use the correct class loader.
finishSetup.setContextClassLoader(loader);
finishSetup.start();
// We can now safely indicate that setup has finished
setupMode = false;
}
}
......@@ -342,9 +345,10 @@ public class XMPPServer {
initModules();
// Start all the modules
startModules();
}
// Load plugins. First, initialize component manager.
// Initialize component manager (initialize before plugins get loaded)
InternalComponentManager.getInstance().start();
}
// Load plugins (when in setup mode only the admin console will be loaded)
File pluginDir = new File(messengerHome, "plugins");
pluginManager = new PluginManager(pluginDir);
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