geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r597012 - /geronimo/server/branches/2.0/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/Deployer.java
Date Wed, 21 Nov 2007 09:59:12 GMT
Author: vamsic007
Date: Wed Nov 21 01:59:11 2007
New Revision: 597012

URL: http://svn.apache.org/viewvc?rev=597012&view=rev
Log:
GERONIMO-3620 Remote deployment using command line deployer does not really work
 o Apparently rev 596561 handles the '/' in contextPath issue.
 o Merging rev 596561 from trunk

Modified:
    geronimo/server/branches/2.0/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/Deployer.java

Modified: geronimo/server/branches/2.0/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/Deployer.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/Deployer.java?rev=597012&r1=597011&r2=597012&view=diff
==============================================================================
--- geronimo/server/branches/2.0/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/Deployer.java
(original)
+++ geronimo/server/branches/2.0/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/Deployer.java
Wed Nov 21 01:59:11 2007
@@ -179,7 +179,13 @@
                 return null;
             }
             AbstractName module = (AbstractName) names.iterator().next();
-            return remoteDeployAddress + "/" + kernel.getAttribute(module, "contextPath")
+ "/upload";
+            String contextPath = (String) kernel.getAttribute(module, "contextPath");
+            if (null == contextPath) {
+                throw new IllegalStateException("Cannot find contextPath attribute for ["
+ module + "]");
+            } else if (contextPath.startsWith("/")) {
+                contextPath = contextPath.substring(1);
+            }
+            return remoteDeployAddress + "/" + contextPath + "/upload";
         } catch (Exception e) {
             log.error("Unable to look up remote deploy upload URL", e);
             return null;



Mime
View raw message