myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r805080 - /myfaces/core/branches/1.2.x/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
Date Mon, 17 Aug 2009 18:04:09 GMT
Author: werpu
Date: Mon Aug 17 18:04:08 2009
New Revision: 805080

URL: http://svn.apache.org/viewvc?rev=805080&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2333

change the classloader code with the Classutils context classloader code
thanks leonardo for pointing it out

Modified:
    myfaces/core/branches/1.2.x/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java

Modified: myfaces/core/branches/1.2.x/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1.2.x/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java?rev=805080&r1=805079&r2=805080&view=diff
==============================================================================
--- myfaces/core/branches/1.2.x/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
(original)
+++ myfaces/core/branches/1.2.x/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
Mon Aug 17 18:04:08 2009
@@ -24,6 +24,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.myfaces.config.ManagedBeanBuilder;
 import org.apache.myfaces.util.ContainerUtils;
+import org.apache.myfaces.shared_impl.util.ClassUtils;
 
 import javax.faces.FactoryFinder;
 import javax.servlet.ServletContext;
@@ -74,7 +75,7 @@
         for(String plugin: pluginEntries) {
             log.info("Processing plugin:"+plugin);
             try {
-                Class pluginClass = Thread.currentThread().getContextClassLoader().loadClass(plugin);
+                Class pluginClass = ClassUtils.getContextClassLoader().loadClass(plugin);
                 ServletContextListener initializer = (ServletContextListener) pluginClass.newInstance();
                 initializer.contextInitialized(event);
             } catch (ClassNotFoundException e) {



Mime
View raw message