Possible Duplicate:
howto increase lines of java stack trace dump?
I’m writing a Java Application for tomcat. whenever an Exception is being thrown I get the name of the Exception and the stack trace and in the end if it’s a long trace I get
... X more.
how can I configure tomcat to show a full stack trace ?
thank you!
That’s not Tomcat’s fault, it’s the way the
Throwable.printStackTraceAsCause(PrintStream s, StackTraceElement[] causedTrace)method implements the printing of stacktraces.If you want, you can print your stacktraces yourself in a log file (or
response.getOutputStream()) by getting first displaying the message of the caught element and then displaying the array element ofStackTraceElement(which can be found by callingThrowable.getStackTrace()method).