geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r397924 - /geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java
Date Fri, 28 Apr 2006 15:32:59 GMT
Author: gnodet
Date: Fri Apr 28 08:32:57 2006
New Revision: 397924

URL: http://svn.apache.org/viewcvs?rev=397924&view=rev
Log:
XBEAN-7: Inconsistent use of classloader when using spring configurations for xbean-server

Modified:
    geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java

Modified: geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java
URL: http://svn.apache.org/viewcvs/geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java?rev=397924&r1=397923&r2=397924&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java
(original)
+++ geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java
Fri Apr 28 08:32:57 2006
@@ -68,7 +68,7 @@
         ClassLoader classLoader;
         NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath");
         if (classpathElements.getLength() < 1) {
-            classLoader = getClass().getClassLoader();
+            classLoader = getClassLoader(applicationContext);
         } else if (classpathElements.getLength() > 1) {
             throw new FatalBeanException("Expected only classpath element but found " + classpathElements.getLength());
         } else {



Mime
View raw message