File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to remove stack trace from faultString in WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to remove stack trace from faultString in WebSphere" Watch "How to remove stack trace from faultString in WebSphere" New topic
Author

How to remove stack trace from faultString in WebSphere

Rakesh kt
Greenhorn

Joined: Jun 07, 2012
Posts: 1
I have deployed a WebService in WebSphere application server. When I request WebService with invalid operation name, I get correct error message "Error: Could not resolve to an operation." But along with this error message I am also getting lot of unwanted stack trace in <faultstring> which could be security threat; faultstring, for example, includes EAR/WAR name with actual path in the server, classloader name, everything in class path get displayed in <faultstring>. Here is what I get:



Is there any way to tell WebSphere server not to include stack trace in faultstring? Please help.

Thanks,
Rakesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to remove stack trace from faultString in WebSphere