Author: fmeschbe
Date: Mon Jan  7 07:54:58 2008
New Revision: 609647

URL: http://svn.apache.org/viewvc?rev=609647&view=rev
Log:
Use getRootCause because ServletException might be properly setup for Exception 
chaining

Modified:
    
incubator/sling/whiteboard/fmeschbe/resource/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java

Modified: 
incubator/sling/whiteboard/fmeschbe/resource/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
URL: 
http://svn.apache.org/viewvc/incubator/sling/whiteboard/fmeschbe/resource/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java?rev=609647&r1=609646&r2=609647&view=diff
==============================================================================
--- 
incubator/sling/whiteboard/fmeschbe/resource/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
 (original)
+++ 
incubator/sling/whiteboard/fmeschbe/resource/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
 Mon Jan  7 07:54:58 2008
@@ -51,8 +51,8 @@
             // rethrow as is
             throw se;
         } catch (ServletException se) {
-            if (se.getCause() != null) {
-                throw new SlingException(se.getMessage(), se.getCause());
+            if (se.getRootCause() != null) {
+                throw new SlingException(se.getMessage(), se.getRootCause());
             }
             throw new SlingException(se);
         }


Reply via email to