tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Recursive dependency between the tomcat-catalina-ha and tomcat-catalina
Date Thu, 21 Oct 2010 15:19:25 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message