Index: lams_common/src/java/org/lamsfoundation/lams/web/util/CustomStrutsExceptionHandler.java =================================================================== diff -u -r9f65d6f36fcfaebdaf2c47792c9ae0058530683e -r286c3eef0e864370fcc48cf1838c9f47d82553fa --- lams_common/src/java/org/lamsfoundation/lams/web/util/CustomStrutsExceptionHandler.java (.../CustomStrutsExceptionHandler.java) (revision 9f65d6f36fcfaebdaf2c47792c9ae0058530683e) +++ lams_common/src/java/org/lamsfoundation/lams/web/util/CustomStrutsExceptionHandler.java (.../CustomStrutsExceptionHandler.java) (revision 286c3eef0e864370fcc48cf1838c9f47d82553fa) @@ -88,12 +88,15 @@ String errorMessage = ex.getMessage() == null ?UNKNOWN_EXCEPTION:ex.getMessage(); request.setAttribute("errorMessage",errorMessage ); + request.setAttribute("errorName", ex.getClass().getName()); ByteArrayOutputStream bos = new ByteArrayOutputStream(); PrintStream os = new PrintStream(bos); ex.printStackTrace(os); - request.setAttribute("errorStack", new String(bos.toByteArray())); - request.setAttribute("errorName", ex.getClass().getName()); + String errorStack = new String(bos.toByteArray()); + request.setAttribute("errorStack", errorStack); + logger.fatal(errorStack); + // process the exception as normal return forward; }