[jboss-jira] [JBoss JIRA] Created: (JBAS-6513) redeploy regression

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Tue Feb 17 04:00:54 EST 2009


redeploy regression
-------------------

                 Key: JBAS-6513
                 URL: https://jira.jboss.org/jira/browse/JBAS-6513
             Project: JBoss Application Server
          Issue Type: Sub-task
      Security Level: Public (Everyone can see)
          Components: Deployers, Test Suite
            Reporter: Dimitris Andreadis
            Assignee: Ales Justin
            Priority: Critical
             Fix For: JBossAS-5.0.1.GA


I believe those started failing with the last MainDeployer changes:

org.jboss.test.hibernate.test.HibernateIntgUnitTestCase.testRedeployment
org.jboss.test.hibernate.test.HibernateIntgUnitTestCase.testCurrentSession
org.jboss.test.security.test.DeepCopySubjectUnitTestCase(tests-security-basic-unit).testSubjectCloning

 public class MainDeployer extends ServiceMBeanSupport
@@ -583,8 +584,25 @@
     */
    public void redeploy(URL url) throws DeploymentException
    {
-      undeploy(url);
-      deploy(url);
+      String deploymentName = contextMap.get(url);
+      if (deploymentName != null)
+      {
+         try
+         {
+            Deployment deployment = delegate.getDeployment(deploymentName);
+            delegate.addDeployment(deployment);
+            delegate.process();
+            delegate.checkComplete(deployment);
+         }
+         catch (org.jboss.deployers.spi.DeploymentException e)
+         {
+            throw new DeploymentException(e);
+         }
+      }
+      else
+      {
+         deploy(url);
+      }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list