Got the root cause by casting the Exception to a ServletException ie.:
Code:
<%
if (exception instanceof ServletException) {
ServletException servletException = (ServletException) exception;
Logger.getLogger("exception.jsp").error(servletException.getRootCause());
Logger.getLogger("exception.jsp").error(servletException.getRootCause().getCause());
} else {
Logger.getLogger("exception.jsp").error(exception);
Logger.getLogger("exception.jsp").error(exception.getCause());
}
%>
/Jørgen