i encountered a strange exception, the track likes below:
======================================================
javax.servlet.jsp.JspException: Exception creating bean of class
org.apache.struts.validator.DynaValidatorForm: {1}
at
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
======================================================
I have tried many methods to solve it, but it still exists.
However, it was fixed when restart the weblogic server. It seems that there are
two same config in the classloader, an old and a new. The system always read the
old one, so some other exception info will be shown up, likes:
======================================================
Error
creating form bean of class org.apache.struts.validator.DynaValidatorForm
java.lang.IllegalArgumentException: Invalid property name 'entryDateTime'
at
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
598)
======================================================
If you have any further info about this exception, please let me know.~
Thanks in advance!
本文记录了一个关于Struts框架中出现的奇怪异常问题及其解决过程。该异常涉及到DynaValidatorForm的初始化错误,重启WebLogic服务器可以暂时解决问题。疑似类加载器中存在相同配置的新旧版本冲突,导致系统始终读取旧配置并引发其他异常。
2843

被折叠的 条评论
为什么被折叠?



