Commit 866d8c58 authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Fix classloading issue in PluginClassLoader due to getting classloader off current thread.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4186 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4c080ebe
......@@ -12,6 +12,7 @@
package org.jivesoftware.wildfire.container;
import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.XMPPServer;
import java.io.File;
import java.io.FilenameFilter;
......@@ -168,7 +169,7 @@ public class PluginClassLoader {
* @return the best parent classloader to use.
*/
private ClassLoader findParentClassLoader() {
ClassLoader parent = Thread.currentThread().getContextClassLoader();
ClassLoader parent = XMPPServer.class.getClassLoader();
if (parent == null) {
parent = this.getClass().getClassLoader();
}
......
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