From 3792452c0d31a620a8d3005454a8ad0b1f14cc8c Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Thu, 12 Jan 2012 16:41:54 +1100 Subject: [PATCH] Add exception cause to NamingException --- .../org/eclipse/jetty/jndi/local/localContextRoot.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/localContextRoot.java b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/localContextRoot.java index a915ad1917d..49c1d57b584 100644 --- a/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/localContextRoot.java +++ b/jetty-jndi/src/main/java/org/eclipse/jetty/jndi/local/localContextRoot.java @@ -457,10 +457,12 @@ public class localContextRoot implements Context { throw e; } - catch (Exception e) + catch (final Exception e) { - __log.warn("",e); - throw new NamingException (e.getMessage()); + throw new NamingException (e.getMessage()) + { + { initCause(e);} + }; } } else