Could not find property [org.apache.catalina.jsp_file 解决方法

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

23:28:42,553  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [org.apache.catalina.jsp_file]
23:28:42,718  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [templateDir]
23:28:42,719  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [templateDir]
23:28:42,723  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [theme]
23:28:42,724  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [theme]
23:28:42,732  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [templateDir]
23:28:42,733  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [templateDir]
23:28:42,735  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [theme]
23:28:42,740  WARN com.opensymphony.xwork2.ognl.OgnlValueStack:45 - Could not find property [theme]

...
...
...
解决方法:
在log4j.properties  (要提前引入log4j.jar)文件中加入:
log4j.logger.com.opensymphony.xwork2=ERROR 
问题解决~

猜你喜欢

转载自sumsunsum.iteye.com/blog/1067835