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 2009/06/20 09:33:15 UTC

svn commit: r786760 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ConfigurationContext.java

Author: azeez
Date: Sat Jun 20 07:33:15 2009
New Revision: 786760

URL: http://svn.apache.org/viewvc?rev=786760&view=rev
Log:
If the contextRoot has not been set, get it from the param defined in axis2.xml

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ConfigurationContext.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ConfigurationContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ConfigurationContext.java?rev=786760&r1=786759&r2=786760&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ConfigurationContext.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/ConfigurationContext.java Sat Jun 20 07:33:15 2009
@@ -851,6 +851,9 @@
      * @return The ContextRoot
      */
     public String getContextRoot() {
+        if (contextRoot == null) {
+            contextRoot = (String) axisConfiguration.getParameter("contextRoot").getValue();
+        }
         return contextRoot;
     }