Re: Recursive dependency between the tomcat-catalina-ha and tomcat-catalina
On 20/10/2010 21:39, Ivan wrote: Hi, 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 ? Yes. Ugly, but possible. By the way, there mightbe a NullPointerException issue while using the BackupManager in the HTMLManagerServlet. Really? Where? Mark --- line.523 Manager manager = ctxt.getManager(); if (manager instanceof BackupManager showProxySessions) { args[5] = new Integer( ((BackupManager)manager).getActiveSessionsFull()); } else if (ctxt.getManager() != null){ args[5] = new Integer(manager.getActiveSessions()); } else { args[5] = new Integer(0); } --- thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Recursive dependency between the tomcat-catalina-ha and tomcat-catalina
2010/10/21 Mark Thomas ma...@apache.org On 20/10/2010 21:39, Ivan wrote: Hi, 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 ? Yes. Ugly, but possible. Could you please show the way, and do the devs plan to work on it ? Thanks. By the way, there mightbe a NullPointerException issue while using the BackupManager in the HTMLManagerServlet. Really? Where? Sorry, please ignore it. Mark --- line.523 Manager manager = ctxt.getManager(); if (manager instanceof BackupManager showProxySessions) { args[5] = new Integer( ((BackupManager)manager).getActiveSessionsFull()); } else if (ctxt.getManager() != null){ args[5] = new Integer(manager.getActiveSessions()); } else { args[5] = new Integer(0); } --- thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ivan