From 1e36bdd1438a33e5c78afc13a2cfbf21a0f9be3f Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Sat, 27 Nov 2004 02:04:43 +0000 Subject: [PATCH] Removed system classloader for finding resources. SMACK-32 git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2423 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/SmackConfiguration.java | 4 ++-- .../org/jivesoftware/smack/provider/ProviderManager.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/source/org/jivesoftware/smack/SmackConfiguration.java b/source/org/jivesoftware/smack/SmackConfiguration.java index db28717a9..24a4ebbf0 100644 --- a/source/org/jivesoftware/smack/SmackConfiguration.java +++ b/source/org/jivesoftware/smack/SmackConfiguration.java @@ -107,6 +107,7 @@ public final class SmackConfiguration { } } catch (Exception e) { + e.printStackTrace(); } } @@ -200,10 +201,9 @@ public final class SmackConfiguration { * @return an array of ClassLoader instances. */ private static ClassLoader[] getClassLoaders() { - ClassLoader[] classLoaders = new ClassLoader[3]; + ClassLoader[] classLoaders = new ClassLoader[2]; classLoaders[0] = new SmackConfiguration().getClass().getClassLoader(); classLoaders[1] = Thread.currentThread().getContextClassLoader(); - classLoaders[2] = ClassLoader.getSystemClassLoader(); return classLoaders; } } diff --git a/source/org/jivesoftware/smack/provider/ProviderManager.java b/source/org/jivesoftware/smack/provider/ProviderManager.java index df8cab58a..79f0c6399 100644 --- a/source/org/jivesoftware/smack/provider/ProviderManager.java +++ b/source/org/jivesoftware/smack/provider/ProviderManager.java @@ -214,7 +214,9 @@ public class ProviderManager { } } } - catch (Exception e) { } + catch (Exception e) { + e.printStackTrace(); + } } /** @@ -346,10 +348,9 @@ public class ProviderManager { * @return an array of ClassLoader instances. */ private static ClassLoader[] getClassLoaders() { - ClassLoader[] classLoaders = new ClassLoader[3]; + ClassLoader[] classLoaders = new ClassLoader[2]; classLoaders[0] = new ProviderManager().getClass().getClassLoader(); classLoaders[1] = Thread.currentThread().getContextClassLoader(); - classLoaders[2] = ClassLoader.getSystemClassLoader(); return classLoaders; }