Hi Juergen, This is my turbine.log by grep -i session, thanks!
INFO [http-8080-Processor22] (BaseServiceBroker.java:218) - Added Mapping for Service: SessionService INFO [http-8080-Processor22] (TurbinePullService.java:336) - Tool org.apache.turbine.services.pull.util.SessionData to add to the context as '$sessionData' INFO [http-8080-Processor22] (BaseServiceBroker.java:362) - Start Initializing service (early): SessionService INFO [http-8080-Processor22] (BaseServiceBroker.java:364) - Finish Initializing service (early): SessionService INFO [main] (BaseServiceBroker.java:428) - Shutting down service: SessionService INFO [http-8080-Processor21] (TurbinePullService.java:336) - Tool org.apache.turbine.services.pull.util.SessionData to add to the context as '$sessionData' DEBUG [http-8080-Processor21] (LimsTemplateSecureSessionValidator.java:256) - User has not logged in... checking login cookie! INFO [http-8080-Processor25] (BaseServiceBroker.java:218) - Added Mapping for Service: SessionService DEBUG [http-8080-Processor25] (TurbinePullService.java:289) - Session Tools: INFO [http-8080-Processor25] (TurbinePullService.java:336) - Tool org.apache.turbine.services.pull.util.SessionData to add to the context as '$sessionData' INFO [http-8080-Processor25] (BaseServiceBroker.java:362) - Start Initializing service (early): SessionService INFO [http-8080-Processor25] (BaseServiceBroker.java:364) - Finish Initializing service (early): SessionService DEBUG [http-8080-Processor25] (ActionLoader.java:123) - Loading Action sessionvalidator.LimsTemplateSecureSessionValidator from the Assembler Broker DEBUG [http-8080-Processor25] (JavaBaseFactory.java:76) - Class Fragment is sessionvalidator.LimsTemplateSecureSessionValidator DEBUG [http-8080-Processor25] (JavaBaseFactory.java:90) - Trying com.activx.lims.modules.actions.sessionvalidator.LimsTemplateSecureSessionValidator DEBUG [http-8080-Processor25] (JavaBaseFactory.java:140) - Returning: [EMAIL PROTECTED] DEBUG [http-8080-Processor25] (TurbinePullService.java:533) - Adding [EMAIL PROTECTED] to ctx as sessionData DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (ManagerBase.java:676) - Start expire sessions StandardManager at 1156187866260 sessioncount 1 DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (ManagerBase.java:685) - End expire sessions StandardManager processingTime 1 expired sessions: 0 On 8/17/06, Jürgen Hoffmann <[EMAIL PROTECTED]> wrote:
Hi David, ok, web.xml looks right. I assume you have your TR.props setup as services.SessionService.classname=org.apache.turbine.services.session.Turbin eSessionService services.SessionService.earlyInit=true can you increase looging level to debug and grep through the logs for anything with sessionservice in its name? Kind regards Juergen Hoffmann -----Ursprüngliche Nachricht----- Von: David Zhao [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 17. August 2006 00:36 An: Turbine Users List; [EMAIL PROTECTED] Betreff: Re: Session service in Turbine 2.3 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</listene r-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] > > !EXCUBATOR:1,44e39dbc114091989512705!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
