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

2009-03-28 19:20:37,109  WARN (com.opensymphony.xwork2.ognl.OgnlValueStack:45) - Could not find property [templateDir]
2009-03-28 19:20:37,109  WARN (com.opensymphony.xwork2.ognl.OgnlValueStack:45) - Could not find property [templateDir]
2009-03-28 19:20:37,125  WARN (com.opensymphony.xwork2.ognl.OgnlValueStack:45) - Could not find property [templateDir]
2009-03-28 19:20:37,125  WARN (com.opensymphony.xwork2.ognl.OgnlValueStack:45) - Could not find property [templateDir]
2009-03-28 19:20:37,250  WARN (com.opensymphony.xwork2.ognl.OgnlValueStack:45) - Could not find property [org.apache.catalina.jsp_file]

...
...
... 

解决方法:

在log4j.properties  (要提前引入log4j.jar)文件中加入: 

log4j.logger.com.opensymphony.xwork2=ERROR  

这样感觉就爽多了……嘿嘿……