[jboss-cvs] JBossAS SVN: r83152 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/injection.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jan 21 08:39:54 EST 2009


Author: remy.maucherat at jboss.com
Date: 2009-01-21 08:39:54 -0500 (Wed, 21 Jan 2009)
New Revision: 83152

Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/service/injection/WebResourceHandler.java
Log:
- JBAS-6403: Port patch for EJBTHREE-1671, to use the container CL for the Class.forName.

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/injection/WebResourceHandler.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/injection/WebResourceHandler.java	2009-01-21 13:39:49 UTC (rev 83151)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/injection/WebResourceHandler.java	2009-01-21 13:39:54 UTC (rev 83152)
@@ -67,7 +67,7 @@
  * 
  * @param <X> the remote environment type
  * @author Scott.Stark at jboss.org
- * @version $Revision:$
+ * @version $Revision$
  */
 public class WebResourceHandler<X extends RemoteEnvironment> implements InjectionHandler<X>
 {
@@ -218,7 +218,7 @@
          {
             if (resTypeName != null)
             {
-               Class<?> resType = Class.forName(resTypeName);
+               Class<?> resType = Class.forName(resTypeName, false, container.getClassloader());
                if (TimerService.class.isAssignableFrom(resType))
                {
                   log.warn("Ignoring invalid TimerService resource-env-ref");




More information about the jboss-cvs-commits mailing list