gpt4 book ai didi

tomcat - Grails + log4j :ERROR WARNING: Exception occured configuring log4j logging: No such property: delegate for class: java. lang.String

转载 作者:行者123 更新时间:2023-11-28 22:41:02 25 4
gpt4 key购买 nike

当我在 tomcat live 上部署我的应用程序时,出现异常:log4j:错误警告:配置 log4j 日志记录时发生异常:没有这样的属性:类的委托(delegate):java.lang.String

我该如何解决?这是 catalina.out

的输出
==> /data/logs/tomcat/catalina.out <==
Feb 22, 2016 5:05:08 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
[ExternalConfigLoader] INFO: File /data/conf/admin-conf.groovy
[ExternalConfigLoader] INFO: File /data/conf/my.properties
[ExternalConfigLoader] INFO: File /data/conf/check_log4j.groovy
7.791: [GC (CMS Initial Mark) [1 CMS-initial-mark: 0K(3072000K)] 1148855K(5760000K), 0.0958523 secs] [Times: user=0.56 sys=0.00, real=0.09 secs]
7.887: [CMS-concurrent-mark-start]
7.889: [CMS-concurrent-mark: 0.002/0.002 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
7.889: [CMS-concurrent-preclean-start]
7.893: [CMS-concurrent-preclean: 0.005/0.005 secs] [Times: user=0.03 sys=0.00, real=0.01 secs]
7.893: [CMS-concurrent-abortable-preclean-start]
log4j:ERROR WARNING: Exception occured configuring log4j logging: No such property: delegate for class: java.lang.String

==> /data/logs/tomcat/catalina.2016-02-22.log <==
22-Feb-2016 17:05:10.530 INFO [servername-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext

最佳答案

检查您的 grails.config.locations:如果您将配置文件保存在 .properties 类型的文件中,则将其更改为 .groovy类型。

关于tomcat - Grails + log4j :ERROR WARNING: Exception occured configuring log4j logging: No such property: delegate for class: java. lang.String,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35725365/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com