cas 单点登录问题

来源:互联网 发布:p2p数据分析报告 编辑:程序博客网 时间:2024/05/16 04:45

cas 单点登录问题

问题描述:

严重: Servlet.service() for servlet [cas] in context with path [/cas_server] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Cannot create a session after the response has been committed] with root causejava.lang.IllegalStateException: Cannot create a session after the response has been committed    at org.apache.catalina.connector.Request.doGetSession(Request.java:3008)    at org.apache.catalina.connector.Request.getSession(Request.java:2384)    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:897)    at org.springframework.webflow.context.servlet.HttpSessionMap.getMutex(HttpSessionMap.java:98)    at org.springframework.webflow.core.collection.LocalSharedAttributeMap.getMutex(LocalSharedAttributeMap.java:39)    at 

解决方法
I assume that happens when there is no ‘service’ param and CAS tries to render a successful generic login page. Correct? If so, that is a side effect that is caused by ‘terminateWebSessionListener’ bean defined in cas-servlet.xml. You could a) disable one b) set the ‘timeToDieInSeconds’ property to a higher value to remedy this annoyance, like so:

<bean id="terminateWebSessionListener" class="org.jasig.cas.web.flow.TerminateWebSessionListener"       p:timeToDieInSeconds="10"/>
0 0
原创粉丝点击