Bug 50230

Summary: Recursive dependency between the tomcat-catalina-ha and tomcat-catalina
Product: Tomcat 7 Reporter: Ivan <xhhsld>
Component: ManagerAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 7.0.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Ivan 2010-11-07 21:04:22 UTC
From the pom file of tomcat-catalina-ha, it depends on the tomcat-catalina. But one class HTMLManagerServlet in the tomcat-catalina has a reference to a class BackupManager in the tomcat-catalina-ha.  Is there a way to remove the recursive dependency between those two components ?
    By the way, there mightbe a NullPointerException issue while using the BackupManager in the HTMLManagerServlet.
    ---> line.523
     Manager manager = ctxt.getManager();
                if (manager instanceof BackupManager && showProxySessions) {
                    args[5] = new Integer(
                } else if (ctxt.getManager() != null){
                    args[5] = new Integer(manager.getActiveSessions());
                } else {
                    args[5] = new Integer(0);

Please also check the thread from
Comment 1 Mark Thomas 2010-11-09 10:34:33 UTC
As was pointed out on the referenced thread there is no NPE risk here.
Comment 2 Mark Thomas 2010-11-11 17:11:28 UTC
Fixed in trunk and will be in 7.0.5 onwards.