axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject svn commit: r220110 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Date Thu, 21 Jul 2005 15:40:02 GMT
Author: hemapani
Date: Thu Jul 21 08:40:00 2005
New Revision: 220110

URL: http://svn.apache.org/viewcvs?rev=220110&view=rev
Log:
revert the chanegs to the AxisServlet (.. sorry I am responsible for the NPE)

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

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java?rev=220110&r1=220109&r2=220110&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Thu Jul 21 08:40:00 2005
@@ -43,6 +43,7 @@
 public class AxisServlet extends HttpServlet {
     private ListingAgent lister;
     private static final String CONFIGURATION_CONTEXT = "CONFIGURATION_CONTEXT";
+    private ConfigurationContext configContext;
 
     /**
      * Method init
@@ -56,7 +57,7 @@
             String repoDir = context.getRealPath("/WEB-INF");
             ConfigurationContextFactory erfac =
                 new ConfigurationContextFactory();
-            ConfigurationContext configContext =
+            configContext =
                 erfac.buildConfigurationContext(repoDir);
             configContext.setProperty(
                 Constants.CONTAINER_MANAGED,
@@ -81,11 +82,6 @@
         HttpServletRequest httpServletRequest,
         HttpServletResponse httpServletResponse)
         throws ServletException, IOException {
-
-        ConfigurationContext configContext =
-            (ConfigurationContext) getServletContext().getAttribute(
-                CONFIGURATION_CONTEXT);
-
         httpServletResponse.setContentType("text/xml; charset=utf-8");
         MessageContext msgContext = null;
         OutputStream out = null;
@@ -168,9 +164,6 @@
     protected void doPost(HttpServletRequest req, HttpServletResponse res)
         throws ServletException, IOException {
         MessageContext msgContext = null;
-        ConfigurationContext configContext =
-            (ConfigurationContext) getServletContext().getAttribute(
-                CONFIGURATION_CONTEXT);
         try {
             Object sessionContext =
                 req.getSession().getAttribute(



Mime
View raw message