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

JBossCacheManager prevents stopping and restarting webapp via JMX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • JBossAS-4.0.4RC1
    • JBossAS-4.0.3 Final, JBossAS-4.0.3 SP1
    • Web (Tomcat) service
    • None

    Description

      The JBossCacheManager's start() method tries to install two valves using JMX calls. This works fine during a normal deployment, but fails if the webapp Context is stopped and then started via JMX operations (JMX console or twiddle).

      The issue is the Tomcat StandardContext's start() method unregisters itself from the JMX server before calling the JBossCacheManager's start() method. It then re-registers itself later on. The JBossCacheManager tries to install 2 valves using JMX, which fail with a InstanceNotFoundException.

      This doesn't show up during normal app deployment because there the deployer starts the context and then adds the manager to the context. By the time the manager is added, the context is registered.

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified