Forums Register Login

exception on console ?

+Pie Number of slices to send: Send
i have configured DD for errors



but the exception also prints on the console.
i dont want anything on the console.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
I just dont want any exception (ServletException or IOException or any other checked or unchecked exception) stack trace to be printed on the console.
+Pie Number of slices to send: Send
 

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.
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 947 times.
Similar Threads
How use web.xml to set error page to grab all exceptions?
Error Page Problem
How to handle JSP exceptions declaratively
pageContext.exception is not executing
<error-page>
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:40:17.