You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by oh...@apache.org on 2005/02/11 16:19:53 UTC

svn commit: r153409 - in jakarta/commons/proper/configuration/trunk: src/java/org/apache/commons/configuration/ConfigurationFactory.java xdocs/changes.xml

Author: oheger
Date: Fri Feb 11 07:19:52 2005
New Revision: 153409

URL: http://svn.apache.org/viewcvs?view=rev&rev=153409
Log:
Fix for issue 33475: Configuring digester to use context class loader

Modified:
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationFactory.java
    jakarta/commons/proper/configuration/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationFactory.java?view=diff&r1=153408&r2=153409
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationFactory.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationFactory.java Fri Feb 11 07:19:52 2005
@@ -45,7 +45,7 @@
  * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
  * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
  * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
- * @version $Id: ConfigurationFactory.java,v 1.20 2004/12/23 18:42:25 oheger Exp $
+ * @version $Id$
  */
 public class ConfigurationFactory
 {
@@ -152,6 +152,9 @@
             // awareness must be configured before the digester rules are loaded.
             configureNamespace(digester);
         }
+        
+        // Configure digester to always enable the context class loader
+        digester.setUseContextClassLoader(true);
         // Put the composite builder object below all of the other objects.
         digester.push(builder);
         // Parse the input stream to configure our mappings

Modified: jakarta/commons/proper/configuration/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/xdocs/changes.xml?view=diff&r1=153408&r2=153409
==============================================================================
--- jakarta/commons/proper/configuration/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/configuration/trunk/xdocs/changes.xml Fri Feb 11 07:19:52 2005
@@ -8,6 +8,12 @@
   <body>
 
     <release version="1.1-dev" date="in CVS">
+      <action dev="oheger" type="add" issue="33475">
+        ConfigurationFactory now always configures digester to use the context
+        classloader. This avoids problems in application server environments,
+        which use their own version of digester. Thanks to Mike Colbert for the
+        patch!
+      </action>
       <action dev="ebourg" type="add" issue="32318">
         Added a new configuration, XMLPropertiesConfiguration, supporting the
         new XML format for java.util.Properties introduced in Java 1.5.



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