[Jboss-cvs] JBossAS SVN: r56423 - branches/JEE5_TCK/system/src/main/org/jboss/deployment
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 29 19:32:41 EDT 2006
Author: dimitris at jboss.org
Date: 2006-08-29 19:32:39 -0400 (Tue, 29 Aug 2006)
New Revision: 56423
Modified:
branches/JEE5_TCK/system/src/main/org/jboss/deployment/MainDeployer.java
Log:
JBAS-3585, on shutdown avoid undeploying twice unpacked nested modules
Modified: branches/JEE5_TCK/system/src/main/org/jboss/deployment/MainDeployer.java
===================================================================
--- branches/JEE5_TCK/system/src/main/org/jboss/deployment/MainDeployer.java 2006-08-29 23:31:18 UTC (rev 56422)
+++ branches/JEE5_TCK/system/src/main/org/jboss/deployment/MainDeployer.java 2006-08-29 23:32:39 UTC (rev 56423)
@@ -507,14 +507,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);
}
-
}
// Help GC
this.deployers.clear();
More information about the jboss-cvs-commits
mailing list