commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r374538 - in /jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging: LogFactory.java impl/LogFactoryImpl.java
Date Thu, 02 Feb 2006 22:56:58 GMT
Author: rdonkin
Date: Thu Feb  2 14:56:55 2006
New Revision: 374538

URL: http://svn.apache.org/viewcvs?rev=374538&view=rev
Log:
Improved diagnostics

Modified:
    jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
    jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java

Modified: jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java?rev=374538&r1=374537&r2=374538&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
(original)
+++ jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/LogFactory.java
Thu Feb  2 14:56:55 2006
@@ -1341,6 +1341,13 @@
             return;
         }
         
+        try {
+            logDiagnostic("Extension directories: " + System.getProperty("java.ext.dir"));
+            logDiagnostic("Application classpath: " + System.getProperty("java.class.path"));
+        } catch(SecurityException ex) {
+            logDiagnostic("Security setting prevent interrogation of system classpaths.");
+        }
+        
         String className = clazz.getName();
         ClassLoader classLoader;
         ClassLoader systemClassLoader;

Modified: jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java?rev=374538&r1=374537&r2=374538&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
(original)
+++ jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/LogFactoryImpl.java
Thu Feb  2 14:56:55 2006
@@ -840,6 +840,13 @@
         ClassLoader currentCL = getBaseClassLoader();
         
         for(;;) {
+            // Loop through the classloader hierarchy trying to find
+            // a viable classloader.
+            logDiagnostic(
+                    "Trying to load "
+                    + logAdapterClassName
+                    + " from classloader "
+                    + objectId(currentCL));
             try {
                 Class c = Class.forName(logAdapterClassName, true, currentCL);
                 constructor = c.getConstructor(logConstructorSignature);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message