[jboss-cvs] JBossAS SVN: r89731 - trunk/system/src/main/org/jboss/system/server/profileservice/hotdeploy.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 3 09:05:18 EDT 2009


Author: emuckenhuber
Date: 2009-06-03 09:05:18 -0400 (Wed, 03 Jun 2009)
New Revision: 89731

Modified:
   trunk/system/src/main/org/jboss/system/server/profileservice/hotdeploy/HDScanner.java
Log:
add catch block when adding deployments to the mainDeployers

Modified: trunk/system/src/main/org/jboss/system/server/profileservice/hotdeploy/HDScanner.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/hotdeploy/HDScanner.java	2009-06-03 13:02:11 UTC (rev 89730)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/hotdeploy/HDScanner.java	2009-06-03 13:05:18 UTC (rev 89731)
@@ -30,6 +30,7 @@
 import java.util.concurrent.TimeUnit;
 
 import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.spi.DeploymentException;
 import org.jboss.logging.Logger;
 import org.jboss.profileservice.spi.ModificationInfo;
 import org.jboss.profileservice.spi.MutableProfile;
@@ -337,17 +338,25 @@
          for (ModificationInfo info : modifiedDeployments)
          {
             ProfileDeployment ctx = info.getDeployment();
-            switch (info.getStatus())
+            try
             {
-               case ADDED:
-               case MODIFIED:
-                  deployer.addDeployment(ctx);
-                  modifiedDeploymentNames.add(ctx.getName());
-                  break;
-               case REMOVED:
-                  deployer.removeDeployment(ctx.getName());
-                  break;
+               switch (info.getStatus())
+               {
+                  case ADDED:
+                  case MODIFIED:
+                     deployer.addDeployment(ctx);
+                     modifiedDeploymentNames.add(ctx.getName());
+                     break;
+                  case REMOVED:
+                     deployer.removeDeployment(ctx.getName());
+                     modified = true;
+                     break;
+               }
             }
+            catch(DeploymentException e)
+            {
+               log.warn("Failed to add deployment " + ctx.getName());
+            }
          }
 
          if (modifiedDeployments.size() > 0)




More information about the jboss-cvs-commits mailing list