【发布时间】:2014-09-27 16:38:45
【问题描述】:
当应用程序部署在 Wildfly 8.1.0.Final 上时,PrettyFaces 会在涉及重定向的每个请求上终止会话。相同的应用程序在 Wildfly 8.0.0.Final 上部署并正常运行。
在 8.1.0 上,PrettyFaces 似乎阻止 servlet 堆栈检索会话 ID。
在这两种情况下,日志均未显示异常。发生 URL 重写,但会话信息(包括登录信息)消失了。这是我的 pretty-config.xml
<pretty-config xmlns="http://ocpsoft.org/schema/rewrite-config-prettyfaces"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces
http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd">
<url-mapping id="user-settings">
<pattern value="/protected/user/settings/"/>
<view-id value="/protected/usersettings.xhtml"/>
</url-mapping>
<url-mapping id="thread-edit">
<pattern value="/protected/threads/edit/#{stitchId}/" />
<view-id value="/protected/threads/stitch.xhtml" />
<action>#{stitchEditBean.editStitchFromId(stitchId)}</action>
</url-mapping>
<url-mapping id="threads-index">
<pattern value="/protected/threads/" />
<view-id value="/protected/threads/index.xhtml" />
</url-mapping>
</pretty-config>
PrettyFaces 2.0.12.Final 和 3.0.0.Alpha2 均出现故障
【问题讨论】:
-
您使用的是哪个 PrettyFaces 版本?
-
目前,3.0.0.Alpha2 但在 2.0.12.Final 上也失败了。
标签: jsessionid prettyfaces wildfly-8