You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by az...@apache.org on 2006/05/02 17:15:55 UTC

svn commit: r398959 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisSOAPServlet.java

Author: azeez
Date: Tue May  2 08:15:41 2006
New Revision: 398959

URL: http://svn.apache.org/viewcvs?rev=398959&view=rev
Log:
Set status 500 to response when an Exception occurs

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisSOAPServlet.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisSOAPServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisSOAPServlet.java?rev=398959&r1=398958&r2=398959&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisSOAPServlet.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisSOAPServlet.java Tue May  2 08:15:41 2006
@@ -52,6 +52,7 @@
         } catch (Exception e) {
             log.error(e);
             if (msgCtx != null) {
+                resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
                 handleFault(msgCtx, resp.getOutputStream(), new AxisFault(e));
             } else {
                 throw new ServletException(e);