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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jan 18 10:50:29 EST 2008


Author: scott.stark at jboss.org
Date: 2008-01-18 10:50:29 -0500 (Fri, 18 Jan 2008)
New Revision: 69113

Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/service/WebCtxLoader.java
Log:
Validate that a parent was found

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/WebCtxLoader.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/WebCtxLoader.java	2008-01-18 14:28:59 UTC (rev 69112)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/WebCtxLoader.java	2008-01-18 15:50:29 UTC (rev 69113)
@@ -90,6 +90,9 @@
       ClassLoader parent = encLoader;
       while ((parent instanceof RepositoryClassLoader) == false && parent != null)
          parent = parent.getParent();
+      // Fail if a parent could not be found
+      if(parent == null)
+         throw new IllegalStateException("No RepositoryClassLoader parent found, encLoader: "+encLoader);
       this.delegate = (RepositoryClassLoader) parent;
       injectionContainer = container;
    }




More information about the jboss-cvs-commits mailing list