https://issues.apache.org/bugzilla/show_bug.cgi?id=49134

           Summary: Server.stop() doesn't unregister all MBeans
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mguille...@yahoo.fr


Created an attachment (id=25306)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25306)
Unit test illustrating the problem

Server.stop() should unregister all MBeans registered by Tomcat but it is not
the case.

It has side effects when starting a new Server as some Tomcat components like
MapperListener components rely on what they find in the MBeanServer and try to
work with objects that don't exist anymore (like Host for MapperListener)

Provided unit test shows a part of the problem (in fact the helper class Tomcat
should be improved to register all MBeans just like a "normal" Tomcat
distribution).

A workaround consists in cleaning up the JMX tree from all Catalina objects
once server.stop() has been called.

For info: it seems that such a problem has already been reported: bug #47046

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to