geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r662892 - in /geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli: CommandInstallCAR.java CommandInstallLibrary.java CommandListConfigurations.java
Date Tue, 03 Jun 2008 21:16:52 GMT
Author: gawor
Date: Tue Jun  3 14:16:51 2008
New Revision: 662892

URL: http://svn.apache.org/viewvc?rev=662892&view=rev
Log:
improve error message and prevent NPE

Modified:
    geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallCAR.java
    geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallLibrary.java
    geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallCAR.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallCAR.java?rev=662892&r1=662891&r2=662892&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallCAR.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallCAR.java
Tue Jun  3 14:16:51 2008
@@ -68,7 +68,7 @@
                 throw new DeploymentException("Cannot install plugin", e);
             }
         } else {
-            throw new DeploymentException("Cannot install plugins when connected to "+connection.getServerURI());
+            throw new DeploymentException("Cannot install plugins using " + dmgr.getClass().getName()
+ " deployment manager");
         }
     }
 

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallLibrary.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallLibrary.java?rev=662892&r1=662891&r2=662892&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallLibrary.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandInstallLibrary.java
Tue Jun  3 14:16:51 2008
@@ -61,7 +61,7 @@
                 throw new DeploymentException("Unable to install library "+installLibraryCommandArgs.getArgs()[0],
e);
             }
         } else {
-            throw new DeploymentException("Cannot install library when connected to "+connection.getServerURI());
+            throw new DeploymentException("Cannot install library using " + dmgr.getClass().getName()
+ " deployment manager");
         }
     }
 }

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java?rev=662892&r1=662891&r2=662892&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandListConfigurations.java
Tue Jun  3 14:16:51 2008
@@ -77,7 +77,7 @@
                 throw new DeploymentException("Invalid response");
             }
         } else {
-            throw new DeploymentException("Cannot list repositories when connected to " +
connection.getServerURI());
+            throw new DeploymentException("Cannot list repositories using " + dmgr.getClass().getName()
+ " deployment manager");
         }
     }
 



Mime
View raw message