Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5506

Deployment state is not set correctly deployments that have previously failed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.2.2.GA
    • Deployers
    • None

      Once the deployment of a ear on JBOSS AS 4.2.2.AG has failed, the JMX method MainDeployer.listDeployed() keeps indicating that the deployment of the ear has failed, even when a later deployment of the fixed component succeeds.

      Steps to reproduce
      1. Start 4.2.2
      2. Take EJB3Trail.ear and take out the application.xml file.
      3. Deploy the ear. You get an exception and a failure.

      Exception:
      org.jboss.deployment.DeploymentException: No META-INF/application.xml found

      Inside the MailDeployer.listDeployed() you see:
      org.jboss.deployment.DeploymentInfo@6b37e2c9

      { url=file:/root/jboss/4.2.2/build/output/jboss-4.2.2.GA/server/default/deploy/EJB3Trail.ear/ }

      deployer: org.jboss.deployment.EARDeployer@e7d53
      status: null
      state: FAILED
      watch: file:/root/jboss/4.2.2/build/output/jboss-4.2.2.GA/server/default/deploy/EJB3Trail.ear/
      altDD: null
      lastDeployed: 1210100865412
      lastModified: 1210099024000
      mbeans:

      4. delete the ear in the deploy directory(complete undeploy)
      5. Fix the ear by putting the application.xml back into the ear
      6. Copy the ear back into the deploy directory
      7. Look in the JMX console under MainDeployer.listDeployed
      you will see that the state has not been updated...
      org.jboss.deployment.DeploymentInfo@6b37e2c9

      { url=file:/root/jboss/4.2.2/build/output/jboss-4.2.2.GA/server/default/deploy/EJB3Trail.ear/ }

      deployer: org.jboss.deployment.EARDeployer@e7d53
      status: null
      state: FAILED
      watch: file:/root/jboss/4.2.2/build/output/jboss-4.2.2.GA/server/default/deploy/EJB3Trail.ear/
      altDD: null
      lastDeployed: 1210100865412
      lastModified: 1210099024000
      mbeans:

      But now all the other sub deployments in the ear appear.

      This also seems to happen for war files and other deployments.

              starksm64 Scott Stark (Inactive)
              rhn-support-jhowell William Howell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: