题
我不知道如果这是我或者如果这是一个错误。
我得到了以下错误
11:52:01,623 ERROR ObjectFactory:27 - Unable to set parameter [dest] in result of type [org.apache.struts2.dispatcher.ServletRedirectResult]
Caught OgnlException while setting property 'dest' on type 'org.apache.struts2.dispatcher.ServletRedirectResult'. - Class: ognl.ObjectPropertyAccessor
File: ObjectPropertyAccessor.java
Method: setProperty
Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1
at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392)
和我的配置是相当小
<package name="esupport" namespace="/esupport" extends="struts-default">
<action name="old-esupport" class="com.my.MyRedirectAction">
<result type="redirect">
<param name="location">http://some.server.com/init.asp</param>
<param name="dest">${dest}</param>
</result>
</action>
</package>
和我班上有一对get/set方法。就是这样。没什么特别
我已经找到了 此 线论坛。但它并不能解决我的问题
我使用
支柱2.1.16 弹簧2 春天安全+CAS
(滑稽的行为是它送我到CAS服务器之后的错误,但我猜这将纠正后重新定向问题得到了固定)
解决方案
好像与Struts2的一个错误。他们建议...通过隐藏错误:
<category name="com.opensymphony.xwork2.ObjectFactory">
<priority value="fatal"/>
</category>
这.... 上重定向故障检修指南部分
其他提示
我在WAS 7服务器将应用程序部署后面对这一问题。这是现有的应用程序,也没有代码变化。
发现在服务器启动日志以下例外
Failed to write out object: ext___405722372
com.ibm.wkplc.extensionregistry.util.XmlUtilException: Unable to write to the given file
刚刚清除服务器高速缓存并重新启动它,这个问题得到了解决。
不隶属于 StackOverflow