WARN OgnlValueStack:45 - Could not find property

阅读更多

struts2 在发开时,控制台如输出大量警告信息,太烦人了,内容如下 : 

16:51:44,170  WARN OgnlValueStack:45 - Could not find property [struts.valueStack]
16:51:44,184  WARN OgnlValueStack:45 - Could not find property [.freemarker.Request]
16:51:44,184  WARN OgnlValueStack:45 - Could not find property [.freemarker.RequestParameters]
16:51:44,293  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:51:44,293  WARN OgnlValueStack:45 - Could not find property [struts.valueStack]
16:51:44,359  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:51:44,360  WARN OgnlValueStack:45 - Could not find property [struts.valueStack]
16:51:44,666  WARN OgnlValueStack:45 - Could not find property [.freemarker.Request]
16:51:44,666  WARN OgnlValueStack:45 - Could not find property [.freemarker.RequestParameters]
16:51:47,126  WARN OgnlValueStack:45 - Could not find property [.freemarker.Request]
16:51:47,126  WARN OgnlValueStack:45 - Could not find property [.freemarker.RequestParameters]
16:51:47,294  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:51:52,157  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:52:54,751  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:52:54,752  WARN OgnlValueStack:45 - Could not find property [org.apache.catalina.jsp_file]
16:52:54,776  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:52:54,777  WARN OgnlValueStack:45 - Could not find property [org.apache.catalina.jsp_file]
16:52:54,873  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:52:54,941  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:53:02,120  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:53:02,121  WARN OgnlValueStack:45 - Could not find property [struts.valueStack]
16:53:02,135  WARN OgnlValueStack:45 - Could not find property [.freemarker.Request]
16:53:02,135  WARN OgnlValueStack:45 - Could not find property [.freemarker.RequestParameters]
16:53:02,331  WARN OgnlValueStack:45 - Could not find property [struts.actionMapping]
16:53:02,332  WARN OgnlValueStack:45 - Could not find property [struts.valueStack]

解决方法:

在log4j.properties  文件中加入: 

log4j.logger.com.opensymphony.xwork2=ERROR 

你可能感兴趣的:(WARN OgnlValueStack:45 - Could not find property)