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

MBean for ear not deregistered when deploy fails

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-4.0.1 Final
    • Fix Version/s: JBossAS-4.0.3RC1
    • Component/s: EJB2
    • Labels:
      None
    • Environment:

      Win2k, JDK 1.4.2, default-configuration as supplied.

      Description

      1) deploy an ear that has a ejb-jar in it that fails verification
      2) redeploy the same ear (either with or without changed jar).
      3) you will get an exception:
      21:55:12,206 INFO [EARDeployer] Init J2EE application: file:/D:/jboss401/server
      /small/deploy/adb.ear
      21:55:12,296 INFO [EARDeployment] Registration is not done -> stop
      21:55:12,296 ERROR [MainDeployer] Could not initialise deployment: file:/D:/jboss401/server/small/deploy/adb.ear
      org.jboss.deployment.DeploymentException: Error in accessing application metadata: ; - nested throwable: javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='adb.ear' already registered.)

      4) Go to jmx-console
      jboss.j2ee

      • service=EARDeployer
      • service=EARDeployment,url='adb.ear'

      5) go into the ,url=... MBean
      6) MBean is in state 8 (registered)
      7) call stop() and/or destroy()
      22:01:47,795 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EARDeployment,url='adb.ear'
      8) redeploy ear -> same exception again
      9) call unregister over twiddle:

      D:> d:\jboss401\bin\twiddle unregister "jboss.j2ee:service=EARDeployment,url='adb.ear'"

      10) MBean is gone in MBean-List, ear can be deployed as usual.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  adrian.brock Adrian Brock
                  Reporter:
                  pilhuhn Heiko Rupp
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: