aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes exception on console ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "exception on console ?" Watch "exception on console ?" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception on console ?