2014-05-12 31 views
0

我在我的記錄器中收到這些警告消息。我也使用Log4j和Tiles。在使用Tiles之前,這些不是來的。以下是警告日誌:com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn:45找不到屬性[templateDir]

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] 

請幫我解決這個問題。我的記錄器文件大小越來越大,它使我的記錄器不可用。

+0

請幫我在這.... – Shubhankar

回答

0

爲了去除這些警告,只需添加下面的代碼行中你的log4j.xml文件:

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