I never thought about doing it this way. Great solution! I'll let you know
how it turns out.
With kind regards,
Kevin Ritter
-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 9:57 PM
To: [EMAIL PROTECTED]
Subject: Re: How do I get the total
Look in the manager app.
-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 3:17 PM
To: 'Tomcat Users List'
Subject: How do I get the total number of users logged into my app
I would like to know if there is a parameter or class or JSP
Thanks for the quick response; however, when I do I get the following error
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
The url is http://localhost:8080/manager/sessions?path=/LMS
Again,
When you declare your webapp, it must be privledged. Look at the manager
webapp declaration.
-Tim
Kevin Ritter wrote:
Thanks for the quick response; however, when I do I get the following error
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is
I'd go for something a little safer myself. Declaire a HttpSessionListener
something like:
public class MyCounter implements HttpSessionListener {
private boolean registered = false;
private int sessionCount = 0;
public void sessionCreated(HttpSessionEvent ev) {