axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r645521 - /webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Date Mon, 07 Apr 2008 13:53:40 GMT
Author: dims
Date: Mon Apr  7 06:53:40 2008
New Revision: 645521

URL: http://svn.apache.org/viewvc?rev=645521&view=rev
Log:
Alternate fix for AXIS2-3710 - fixes for backward compatibility (merging trunk svn revision
645520)

Modified:
    webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?rev=645521&r1=645520&r2=645521&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Mon Apr  7 06:53:40 2008
@@ -669,7 +669,12 @@
         msgContext.setProperty(MessageContext.TRANSPORT_HEADERS, getTransportHeaders(request));
         msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, request);
         msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE, response);
-        msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, getServletContext());
+        try {
+            ServletContext context = getServletContext();
+            msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, context);
+        } catch (Exception e){
+            log.debug(e.getMessage(), e);
+        }
 
         //setting the RequestResponseTransport object
         msgContext.setProperty(RequestResponseTransport.TRANSPORT_CONTROL,



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message