title: correctly printstacktrace of servlet exception
body: <p>so i am using a filter to catch servlet exception (because we are using a mix of jsf/plain servlets)</p>
  
  <p>when catching the ServletException and calling printstacktrace most of the information is lost.</p>
  
  <p>the "true" root exception seems to be hidden behind the "funny" expression </p>
  
  <pre><code>((ServletException) e.getRootCause().getCause()).getRootCause().getCause().getCause().getCause()
  </code></pre>
  
  <p>this is clearly not the way to do it.</p>
  
  <p>is the an easy way to print the "full" information of such an exception.
  can someone explain me why the exception is wrapped this way?</p>