| Author |
exception on console ?
|
hasan khan
Ranch Hand
Joined: Aug 04, 2003
Posts: 222
|
|
i have configured DD for errors but the exception also prints on the console. i dont want anything on the console.
|
SCJP, SCWCD
|
 |
Serghei Jelauc
Ranch Hand
Joined: Jul 24, 2002
Posts: 128
|
|
What type of your exception? Declarative <error-page> works only for non-checked (Runtime) exceptions and ServletException because servlet's doXXX method signature allows to throw only ServletException and IOException. To make this works - wrap any non Runtime exception into ServletException and rethrow it. Hope it helps.
|
SCJP 1.4 <br />SCBCD 1.3<br />SCWCD 1.4
|
 |
hasan khan
Ranch Hand
Joined: Aug 04, 2003
Posts: 222
|
|
|
I just dont want any exception (ServletException or IOException or any other checked or unchecked exception) stack trace to be printed on the console.
|
 |
Vishwa Kumba
Ranch Hand
Joined: Aug 27, 2003
Posts: 1064
|
|
Originally posted by hasaN khaN: I just dont want any exception ( ServletException or IOException or any other checked or unchecked exception) stack trace to be printed on the console.
I don't remember exactly how, to disable messages on the console window in Tomcat, but I believe there is a way to do it.
|
 |
 |
|
|
subject: exception on console ?
|
|
|