Ivan and Eben, thank you both for the replies. Please let me describe the problem that I am trying to solve.
We have several web applications running in
Tomcat. Each application implements several web services. The problem is that every time a web service throws a runtime exception
the exception is logged to catalina.log file instead of the log file specific to the web application hosting this service.
The exception is then sent to the client in a form of a SOAP fault. The client correctly prints the server-side stack trace that caused the fault. However,
we do not have access to client machines in production and would like to log the stack trace of the exception that caused the fault on the server.
In order to centralize exception logging on the server I created a new SOAP handler. At this point, my handler can log the content of the fault. I would like to enhance the handler to log the exception trace that caused the fault in a Java-like format.
So, that's the problem in a nutshell.
Let me know if you have more ideas.
Thanks.
Alec