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

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Wed Feb 18 11:10:55 EST 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dimitris Andreadis resolved JBAS-6513.
--------------------------------------

    Resolution: Done


This is fixed now.

> 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