Commits

Anonymous committed d2624f5

Fix for USER-57

  • Participants
  • Parent commits 6b0e9cf

Comments (0)

Files changed (1)

src/java/com/opensymphony/user/util/ConfigLoader.java

  * providers, reads their properties and initializes them.
  *
  * @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
- * @version $Revision: 1.1.1.1 $
+ * @version $Revision: 1.2 $
  *
  * @see com.opensymphony.user.UserManager
  * @see com.opensymphony.user.provider.UserProvider
 
                 try {
                     authenticator = (Authenticator) Class.forName(currentClass).newInstance();
+                } catch (ClassNotFoundException ee) {
+                    // try using thread's classloader
+                    authenticator = (Authenticator) Class.forName(currentClass, true, Thread.currentThread().getContextClassLoader()).newInstance();
                 } catch (NoClassDefFoundError ee) {
                     // try using thread's classloader
                     authenticator = (Authenticator) Class.forName(currentClass, true, Thread.currentThread().getContextClassLoader()).newInstance();
 
                 try {
                     provider = (UserProvider) Class.forName(currentClass).newInstance();
+                } catch (ClassNotFoundException ee) {
+                    // try using thread's classloader
+                    provider = (UserProvider) Class.forName(currentClass, true, Thread.currentThread().getContextClassLoader()).newInstance();
                 } catch (NoClassDefFoundError ee) {
                     // try using thread's classloader
                     provider = (UserProvider) Class.forName(currentClass, true, Thread.currentThread().getContextClassLoader()).newInstance();