From: fcarrion Date: Sun, 25 Mar 2007 01:08:07 +0000 (+0000) Subject: Forward exception to the parent class, so the user knows his configuration problem X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=04894e92160c7f2137271ee7a7fef08b44b594b3;p=tomcat7.0 Forward exception to the parent class, so the user knows his configuration problem git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@522136 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/naming/factory/EjbFactory.java b/java/org/apache/naming/factory/EjbFactory.java index 57195f8f7..958e7c73d 100644 --- a/java/org/apache/naming/factory/EjbFactory.java +++ b/java/org/apache/naming/factory/EjbFactory.java @@ -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 {