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 di...@apache.org on 2008/02/14 19:02:41 UTC

svn commit: r627818 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java

Author: dims
Date: Thu Feb 14 10:02:36 2008
New Revision: 627818

URL: http://svn.apache.org/viewvc?rev=627818&view=rev
Log:
set the webapp path as early as possible

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java?rev=627818&r1=627817&r2=627818&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/WarBasedAxisConfigurator.java Thu Feb 14 10:02:36 2008
@@ -96,6 +96,15 @@
             this.config = servletConfig;
             InputStream axis2Stream = null;
             try {
+                // when the module is an unpacked war file,
+                // we can set the web location path in the deployment engine.
+                // This will let us
+                String webpath = config.getServletContext().getRealPath("");
+                if (webpath != null && !"".equals(webpath)) {
+                    log.debug("setting web location string: " + webpath);
+                    File weblocation = new File(webpath);
+                    setWebLocationString(weblocation.getAbsolutePath());
+                } // if webpath not null
 
                 if (axis2Stream == null) {
                     String axis2xmlpath = config.getInitParameter(PARAM_AXIS2_XML_PATH);
@@ -156,18 +165,6 @@
             } catch (AxisFault axisFault) {
                 log.error(axisFault.getMessage(), axisFault);
             }
-
-            // when the module is an unpacked war file,
-            // we can set the web location path in the deployment engine.
-            // This will let us
-            String webpath = config.getServletContext().getRealPath("");
-            if (webpath != null && !"".equals(webpath)) {
-                log.debug("setting web location string: " + webpath);
-                File weblocation = new File(webpath);
-                setWebLocationString(weblocation.getAbsolutePath());
-            } // if webpath not null
-
-
         } catch (DeploymentException e) {
             log.error(e.getMessage(), e);
             throw e;



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