大家看一下 这些提示是什么意思?

我把log4j.properties删除了也会出现这些。这些警告好烦的,之前都没有的。
11:20:12,625 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [struts.valueStack]
11:20:12,765 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [org.apache.catalina.jsp_file]
11:20:12,968 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:12,968 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:12,968 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:12,984 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:12,984 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:12,984 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:12,984 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:12,984 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:13,468 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [.freemarker.Request]
11:20:13,468 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [.freemarker.RequestParameters]
11:20:13,562 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:13,562 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:13,593 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:13,593 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:13,593 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:13,593 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [templateDir]
11:20:13,593 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:13,609 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [theme]
11:20:13,781 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:46 - Could not find property [struts.valueStack]

把 log4j.rootLogger=warn, stdout 改为 log4j.rootLogger=error, stdout

先试一下 log4j.properties 是否起作用.

删了log4j.properties是不行的,在log4j.properties中加入一行就看不见了:
log4j.logger.com.opensymphony.xwork2.ognl=ERROR

Missing Properties
This message states that the framework searched for a property in the value stack and failed to find it.

2008-04-19 14:21:08,177 WARN [http-8443-Processor25] [OgnlValueStack] Could not find property [templateDir]
2008-04-19 14:21:08,177 WARN [http-8443-Processor25] [OgnlValueStack] Could not find property [templateDir]
2008-04-19 14:21:08,177 WARN [http-8443-Processor25] [OgnlValueStack] Could not find property [templateDir]
2008-04-19 14:21:08,178 WARN [http-8443-Processor25] [OgnlValueStack] Could not find property [org.apache.catalina.jsp_file]
To hide these messages, turn off the WARN level logging for OgnlValueStack.

eg. Include a new limit category in your log4j.xml file (only log errors or worse):




原来是少了log4j配置文件,顿悟+无语。。。。。看一下lib包,果然没有log4j-xxx.jar,到apache下个log4j- 1.2.9.jar包放到lib下。现在不需要写log4.xml也不会出现警告信息。如果加上去也可以,把日志信息的级别调整为ERRORJ即可。

[quote]我加了没有用。[/quote]

不要忘了重启,并备份清空日志(以免看错了)。

[quote]我重启了,怎么备份清空日志我就不知道了。怎么做呀?[/quote]

选停了,然后将当前日志文件改个名,然后启动。

在struts2中出现Could not find property [struts.valueStack] 的原因就是没有引入log4j.jar的问题
引入log4j.jar
在log4j.properties 加入
log4j.logger.com.opensymphony.xwork2=ERROR
或者
在log4.xml加入



提高log4j的级别。
没有其他办法了。

[quote]果然还是没有用。[/quote]
把整个log4j.properties贴出来看看,注意这个文件是放在WEB-INF/classes目录下。

对了你被忘了在action中也得调用ActionSupport.add方法