Forward exception to the parent class, so the user knows his configuration problem
authorfcarrion <fcarrion@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 25 Mar 2007 01:08:07 +0000 (01:08 +0000)
committerfcarrion <fcarrion@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 25 Mar 2007 01:08:07 +0000 (01:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@522136 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/naming/factory/EjbFactory.java

index 57195f8..958e7c7 100644 (file)
@@ -134,6 +134,10 @@ public class EjbFactory
                     try {
                         factory = (ObjectFactory) factoryClass.newInstance();
                     } catch(Throwable t) {
+                        NamingException ex = new NamingException
+                            ("Could not load resource factory class");
+                        ex.initCause(t);
+                        throw ex;
                     }
                 }
             } else {