【发布时间】:2017-02-21 16:53:49
【问题描述】:
我目前正在 Websphere 8.0 上使用 JSF 进行编程,但遇到了一个问题,我认为这是因为我们的集群。我们有两个节点,在一个节点宕机一段时间后,我的问题就没有发生了。
我的问题是我通过 commandButton 提交后以 javax.faces.application.ViewExpiredException 结束。
在此之前的堆栈跟踪中我也发现了这个:
View State cannot be reconstructed
javax.faces.FacesException: javax.faces.application.ViewExpiredException
at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:496)
at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:378)
所以我猜这两个节点之间的处理有问题。
在我的 web.xml 中我设置了:
<distributable />
和
<env-entry>
<env-entry-name>jsf/ClientSideSecretKey</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>SRe1FY2HKwBTOtT5KrtmiSoOzws+NA9/yX191wMFn9o=</env-entry-value>
</env-entry>
就像其他线程中提到的其他问题一样,但我的问题仍然存在。
Websphere 内部是否需要进行一些配置?
【问题讨论】: