You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jb...@apache.org on 2004/11/12 16:18:43 UTC

svn commit: rev 57527 - geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local

Author: jboynes
Date: Fri Nov 12 07:18:42 2004
New Revision: 57527

Modified:
   geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
Log:
continue to undeploy if application is already stopped

Modified: geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java
==============================================================================
--- geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java	(original)
+++ geronimo/trunk/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/local/UndeployCommand.java	Fri Nov 12 07:18:42 2004
@@ -48,7 +48,11 @@
                 URI moduleID = URI.create(module.getModuleID());
                 try {
                     kernel.stopConfiguration(moduleID);
+                } catch (NoSuchConfigException e) {
+                    // module was already undeployed - just continue
+                }
 
+                try {
                     TargetImpl target = (TargetImpl) module.getTarget();
                     ObjectName storeName = target.getObjectName();
                     URI configID = URI.create(module.getModuleID());