SUN AS reads error handler page after custom WS exception
843833Sep 29 2005 — edited Apr 19 2006Hi
I have developed a WEB service and deployed it on SUN AS PE 8.1. My WEB service sometimes throws a custom exception to inform client about incorrect input date etc. That works quite well, I can tested both Java and .NET clients.
However SUN AS behaves a bit strange, if the exception is thrown. It sets HTTP exit status to 500 (internal error) and even attempts to process my error page printing to log file this:
Exception Processing ErrorPage[errorCode=500, location=/errorPage/ErrorPage.jsp]
java.lang.IllegalStateException
The problem is that some WS clients return to caller HTTP error 500, instead of SOAP fault. Is there any solution for this ?