Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Problem listing apps in manager app

csirus

2007-07-16

Replies:


I hit the same snag when I updated server.xml and added some Context elements
for web apps I hadn't deployed yet. So, check the spelling/existence of any
webapps that you explicitly name in your server.xml file.


Jake Alley wrote:
>
> I'm trying to list the applications in the manager app. It was working
> before, but now all of a sudden it has stopped. It was working before,
> but I added an app and it stopped working. I remove the app and it still
> doesn't work. I clean the work space for the manager app and it still
> doesn't work. The applications list under "Complete Server Status" but
> not under "List Applications."
>
> I'm using 6.0.13 on 1.5.0_06-b05
>
> The error I get is:
>
> java.lang.NullPointerException
>
> org.apache.catalina.manager.HTMLManagerServlet.list (HTMLManagerServlet.java:434)
>
> org.apache.catalina.manager.HTMLManagerServlet.doGet (HTMLManagerServlet.java:137)
> javax.servlet.http.HttpServlet.service (HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service (HttpServlet.java:803)
>
> Line 434 is the following:
>
> args[11] = new Integer(context.getManager().getMaxInactiveInterval()/60);
>
> I'm inclined to believe it's failing because of context.getManager() which
> is checked for null previously in the same function.
>
>           if (context.getManager() != null) {
>              args[4] = new Integer
>                 (context.getManager().getActiveSessions());
>           } else {
>              args[4] = new Integer(0);
>           }
>
> Does anybody have any insight into this?
>
> Thanks.
>
>
>    
> ---------------------------------
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.
>

--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.