geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: r158583 - in geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment: cli/ServerConnection.java plugin/factories/DeploymentFactoryImpl.java
Date Tue, 22 Mar 2005 09:19:03 GMT
Author: gdamour
Date: Tue Mar 22 01:19:01 2005
New Revision: 158583

URL: http://svn.apache.org/viewcvs?view=rev&rev=158583
Log:
Do not lose the root cause of exception.

Modified:
    geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/ServerConnection.java
    geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/factories/DeploymentFactoryImpl.java

Modified: geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/ServerConnection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/ServerConnection.java?view=diff&r1=158582&r2=158583
==============================================================================
--- geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/ServerConnection.java
(original)
+++ geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/cli/ServerConnection.java
Tue Mar 22 01:19:01 2005
@@ -159,7 +159,7 @@
             if(authPrompt && (user == null || password == null)) {
                 doAuthPromptAndRetry(uri, user, password);
             } else {
-                throw new DeploymentException("Unable to connect to server: "+e.getMessage());
+                throw new DeploymentException("Unable to connect to server", e);
             }
         } catch(DeploymentManagerCreationException e) {
             if(uri != null) {

Modified: geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/factories/DeploymentFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/factories/DeploymentFactoryImpl.java?view=diff&r1=158582&r2=158583
==============================================================================
--- geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/factories/DeploymentFactoryImpl.java
(original)
+++ geronimo/trunk/modules/deploy-tool/src/java/org/apache/geronimo/deployment/plugin/factories/DeploymentFactoryImpl.java
Tue Mar 22 01:19:01 2005
@@ -18,8 +18,6 @@
 package org.apache.geronimo.deployment.plugin.factories;
 
 import java.io.IOException;
-import java.net.URI;
-import java.net.URISyntaxException;
 import java.util.HashMap;
 import java.util.Map;
 import javax.enterprise.deploy.shared.factories.DeploymentFactoryManager;
@@ -93,7 +91,7 @@
                 } catch (IOException e) {
                     throw (DeploymentManagerCreationException)new DeploymentManagerCreationException(e.getMessage()).initCause(e);
                 } catch (SecurityException e) {
-                    throw new AuthenticationFailedException("Invalid login.");
+                    throw (AuthenticationFailedException) new AuthenticationFailedException("Invalid
login.").initCause(e);
                 }
             } else {
                 throw new DeploymentManagerCreationException("Invalid URI: " + uri);



Mime
View raw message