首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45找不到财产[templateDir]

com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn: 45找不到财产[templateDir]
EN

Stack Overflow用户
提问于 2014-05-12 06:03:52
回答 1查看 1.6K关注 0票数 0

我在我的日志里收到了这些警告Msg。我也在使用Log4j和Tiles。在使用瓷砖之前,这些瓷砖是不起作用的。以下是警告日志:

代码语言:javascript
复制
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] 

请帮帮我。我的日志文件大小在增加,这使我的记录器无法使用.?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-05 06:06:59

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

代码语言:javascript
复制
<logger name="com.opensymphony.xwork2.util.logging.commons.CommonsLogger">
    <level value="warn"/>
</logger>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23602034

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档