Hi Juergen , We use tomcat 5.5.15 here, and web.xml is like:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2.3.dtd"> <listener-class>org.apache.turbine.services.session.SessionListener</listener-class> </listener> <servlet> <servlet-name>lims</servlet-name> <servlet-class>org.apache.turbine.Turbine</servlet-class> <init-param> <param-name>applicationRoot</param-name> <param-value>webContext</param-value> </init-param> <init-param> <param-name>properties</param-name> <param-value>/WEB-INF/conf/TurbineResources.properties</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>lims</servlet-name> <url-pattern>/servlet/lims/*</url-pattern> </servlet-mapping> <security-constraint> <web-resource-collection> <web-resource-name>templates</web-resource-name> <url-pattern>/templates/*</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>logs</web-resource-name> <url-pattern>/logs/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>Templates</realm-name> </login-config> </web-app> On 8/16/06, Jürgen Hoffmann <[EMAIL PROTECTED]> wrote:
Hi David, which Servlet Container are you using? Can you post your web.xml? Kind regards Juergen Hoffmann -----Ursprüngliche Nachricht----- Von: David Zhao [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. August 2006 19:49 An: Turbine Users List Betreff: Session service in Turbine 2.3 Hi there, I was just trying to get a simple page to display all the current active sessions. I've followed the instruction from (http://jakarta.apache.org/turbine/turbine/turbine-2.3.2/services/session-se rvice.html) including configurations in TR.properites, web.xml however, TurbineSession.isUserLoggedIn(MYSELF) when I was logged in returned FALSE. Also, TurbineSession.getActiveSessions() or TurbineSession.getActiveUsers() return empty collection. Please help, thanks in advance! David --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !EXCUBATOR:1,44e35b06114091903119356! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
