 		  
 		  	(render (-> env :servlet-api :request))
 			]		  	
-
     ]
   ])
   
 (create-pipeline :request-exception
   (fn [env exception]
     (debug "Request exception: %s" exception)
+    (.printStackTrace (root-cause exception))
     (call-pipeline :render-view (assoc-in env [:cascade :exception] exception) #'exception-report)))
             
; implied. See the License for the specific language governing permissions
; and limitations under the License.

(ns #^{:doc "Exception reporting"}
  cascade.exception
  (:import (java.lang Throwable StackTraceElement))
  (:require
  	(clojure.contrib (str-utils2 :as s2)))
  (:use 
  	cascade 
  	(cascade.internal utils)
  	(cascade config logging pipeline renderer)))


(defn include-js-library
  [env path]
  (template
  	; Force open/close tags for stupid browser compatibility       
  	:script { :type "text/javascript" :src (classpath-asset-path env path) } [ linebreak ]))

(defview exception-report
