geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r407961 - /geronimo/branches/1.1/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
Date Sat, 20 May 2006 07:26:09 GMT
Author: djencks
Date: Sat May 20 00:26:08 2006
New Revision: 407961

URL: http://svn.apache.org/viewvc?rev=407961&view=rev
Log:
GERONIMO-1784 fix error message from sqllogin module

Modified:
    geronimo/branches/1.1/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java

Modified: geronimo/branches/1.1/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java?rev=407961&r1=407960&r2=407961&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
(original)
+++ geronimo/branches/1.1/modules/security/src/java/org/apache/geronimo/security/realm/providers/SQLLoginModule.java
Sat May 20 00:26:08 2006
@@ -138,11 +138,11 @@
             }
             ClassLoader cl = (ClassLoader) options.get(JaasLoginModuleUse.CLASSLOADER_LM_OPTION);
             try {
-                this.driver = (Driver) cl.loadClass((String) options.get(DRIVER)).newInstance();
+                driver = (Driver) cl.loadClass((String) options.get(DRIVER)).newInstance();
             } catch (ClassNotFoundException e) {
                 throw new IllegalArgumentException("Driver class " + options.get(DRIVER)
+ " is not available.  Perhaps you need to add it as a dependency in your deployment plan?");
             } catch (Exception e) {
-                throw new IllegalArgumentException("Unable to load, instantiate, register
driver " + driver + ": " + e.getMessage());
+                throw new IllegalArgumentException("Unable to load, instantiate, register
driver " + options.get(DRIVER) + ": " + e.getMessage());
             }
         }
     }



Mime
View raw message