[Jboss-cvs] JBossAS SVN: r56422 - branches/Branch_3_2/system/src/main/org/jboss/deployment

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 29 19:31:21 EDT 2006


Author: dimitris at jboss.org
Date: 2006-08-29 19:31:18 -0400 (Tue, 29 Aug 2006)
New Revision: 56422

Modified:
   branches/Branch_3_2/system/src/main/org/jboss/deployment/MainDeployer.java
Log:
JBAS-3585, on shutdown avoid undeploying twice unpacked nested modules

Modified: branches/Branch_3_2/system/src/main/org/jboss/deployment/MainDeployer.java
===================================================================
--- branches/Branch_3_2/system/src/main/org/jboss/deployment/MainDeployer.java	2006-08-29 23:25:48 UTC (rev 56421)
+++ branches/Branch_3_2/system/src/main/org/jboss/deployment/MainDeployer.java	2006-08-29 23:31:18 UTC (rev 56422)
@@ -367,14 +367,20 @@
       {
          try
          {
-            undeploy((DeploymentInfo)i.previous(), true);
-            deployCounter++;
+            DeploymentInfo di = (DeploymentInfo)i.previous();
+            
+            // A nested deployment may be already undeployed by the outer deployment
+            // so check at this point to avoid undeploying twice, see JBAS-3585.
+            if (getDeployment(di.url) != null)
+            {
+               undeploy(di, true);
+               deployCounter++;
+            }
          }
          catch (Exception e)
          {
             log.info("exception trying to undeploy during shutdown", e);
          }
-
       }
 
       log.debug("Undeployed " + deployCounter + " deployed packages");




More information about the jboss-cvs-commits mailing list