Commit 665c6a49 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Set context class loader to be plugin class loader when initializing plugin. JM-1055

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8201 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3729fa8d
...@@ -412,7 +412,10 @@ public class PluginManager { ...@@ -412,7 +412,10 @@ public class PluginManager {
} }
// Init the plugin. // Init the plugin.
ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(pluginLoader);
plugin.initializePlugin(this, pluginDir); plugin.initializePlugin(this, pluginDir);
Thread.currentThread().setContextClassLoader(oldLoader);
// If there a <adminconsole> section defined, register it. // If there a <adminconsole> section defined, register it.
Element adminElement = (Element)pluginXML.selectSingleNode("/plugin/adminconsole"); Element adminElement = (Element)pluginXML.selectSingleNode("/plugin/adminconsole");
......
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