Hi,

I have a question about setting session timeouts for Shiro web applications. 
I'm using Shiro 1.2.0-SNAPSHOT and configuring Shiro using param-values of 
ShiroFilter in web.xml. When I try adding 
"securityManager.sessionManager.globalSessionTimeout" in web.xml as per 
configuration docs, I get the error below - property does not exist for 
DefaultWebSecurityManager. Have also tried to find a way to programmatically 
configure this timeout, but no luck there either. Are the docs out of date, or 
does the WebSecurityManager get the global session timeout elsewhere?



Cheers,



Martin.


15:25:08,708 ERROR [org.apache.shiro.web.servlet.AbstractFilter] (MSC service 
thread 1-5) Unable to start Filter: [Property 'sessionManager.globalSess
ionTimeout' does not exist for object of type 
org.apache.shiro.web.mgt.DefaultWebSecurityManager.].: 
org.apache.shiro.config.ConfigurationException: P
roperty 'sessionManager.globalSessionTimeout' does not exist for object of type 
org.apache.shiro.web.mgt.DefaultWebSecurityManager.
        at 
org.apache.shiro.config.ReflectionBuilder.isTypedProperty(ReflectionBuilder.java:251)
 [shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:355)
 [shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.config.ReflectionBuilder.applySingleProperty(ReflectionBuilder.java:202)
 [shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:163)
 [shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:123)
 [shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:170)
 [shiro-core-1.2.0-20110928.040519-52.j
ar:]
        at 
org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:119)
 [shiro-core-1.2.0-20110928.0405
19-52.jar:]
        at 
org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:97)
 [shiro-core-1.2.0-20110928.04051
9-52.jar:]
        at 
org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:83)
 [shiro-core-1.2.0-20110928.040519-52.ja
r:]
        at 
org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:41)
 [shiro-core-1.2.0-20110928.040519-52.ja
r:]
        at 
org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)
 [shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47) 
[shiro-core-1.2.0-20110928.040519-52.jar:]
        at 
org.apache.shiro.web.servlet.IniShiroFilter.applySecurityManager(IniShiroFilter.java:260)
 [shiro-web-1.2.0-20110928.040519-49.jar:]
        at 
org.apache.shiro.web.servlet.IniShiroFilter.configure(IniShiroFilter.java:228) 
[shiro-web-1.2.0-20110928.040519-49.jar:]
        at 
org.apache.shiro.web.servlet.IniShiroFilter.init(IniShiroFilter.java:190) 
[shiro-web-1.2.0-20110928.040519-49.jar:]
        at 
org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)
 [shiro-web-1.2.0-20110928.040519-49.jar:]
        at 
org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:97) 
[shiro-web-1.2.0-20110928.040519-49.jar:]
        at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447)
 [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHO
T]
        at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245) 
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) 
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
        at 
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
 [jboss-as-web-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-S
NAPSHOT]
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
 [jboss-msc-1.0.0.GA.jar:]
        at 
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
 [jboss-msc-1.0.0.GA.jar:]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [:1.6.0_22]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[:1.6.0_22]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

Reply via email to