File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception on console ?

 
hasan khan
Ranch Hand
Posts: 222
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have configured DD for errors



but the exception also prints on the console.
i dont want anything on the console.
 
Serghei Jelauc
Ranch Hand
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
hasan khan
Ranch Hand
Posts: 222
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic