com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn:45找不到属性[templateDir]

时间:2014-05-12 06:03:53

标签: tiles

我在Logger中收到了这些警告消息。我也在使用Log4j和Tiles。在使用Tiles之前,这些都没有到来。以下是警告日志:

com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Detected container provider Struts XML configuration provider (struts.xml) needs to be reloaded.  Reloading all providers. 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Parsing configuration file [struts-default.xml] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Parsing configuration file [struts-plugin.xml] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Parsing configuration file [struts.xml] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Overriding property struts.i18n.reload - old value: false new value: true 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Overriding property struts.configuration.xml.reload - old value: false new value: true 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info: 31 Loading global messages from ApplicationResources 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [struts.actionMapping] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [org.apache.catalina.jsp_file] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [org.apache.catalina.jsp_file] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [struts.valueStack] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 No configuration found for the specified action: 'userLogin.action' in namespace: '/jsp/login'. Form action defaulting to 'action' attribute's literal value. 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [.freemarker.Request] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [.freemarker.RequestParameters] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [templateDir] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [theme] 
 com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45 Could not find property [fieldErrors] 

请帮我解决这个问题。我的Logger文件大小正在增加,这使得我的记录器无法使用.. ???

1 个答案:

答案 0 :(得分:0)

要删除这些警告,只需在log4j.xml文件中添加以下代码行:

<logger name="com.opensymphony.xwork2.util.logging.commons.CommonsLogger">
    <level value="warn"/>
</logger>