You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2005/07/21 17:40:02 UTC
svn commit: r220110 -
/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
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(