异常描述:将一将公用服务打成JAR包放置到其他工程里面,系统启动时Log4j打印出如上Error,引发LOG4J失效。
异常解决:检查JAR包中的LOG4J的配置是否与工程中现有的LOG4J配置冲突,其中有可能冲突的地方是:
1、Appender的名称与现有工程冲突。
<appender name="Appender" class="org.apache.log4j.RollingFileAppender">
2、现有工程中已经有ROOT配置,JAR中也包含了些配置,引发冲突。
<root>
<level value="info"/>
<appender-ref ref="LogToFile"/>
</root>
3、 logger 的name与现有工程冲突。
<logger name="com.xxx.xxx" additivity="false">
删除jar包中日志的root配置,并保持appender、logger节点的命名或路径唯一性就可以正常启用LOG4J了。
分享到:
相关推荐
Kernel panic - not syncing: Attempted to kill init 解决办法 开源成就技术;技术成就梦想
本人最近在玩树莓派4B的时候,树莓派在烧录镜像之后,无法启动,一直卡死在end kernel panic not syncing: attempted to kill init! exitcode = 0x00000000b 环境 设备:树莓派4B 查找原因–树莓派官网 根据官网给...
在Linux系统中,"Kernel panic(Attempted to kill init!)"是一个非常严重的错误提示,它意味着内核遇到了无法恢复的问题,通常会导致系统崩溃。这个错误通常发生在ARM架构的设备上,比如开发板、嵌入式系统或者...
Attempted to assign to readonly property报错 起因:项目中写了个点击事件,增加动态效果,类似于转一转,rotate(360)。很简单的一个特效。 设置元素的transition:transform 1s。 然后动态改变元素的transfrom:...
首先,当新建虚拟机时遇到“end kernel panic - not syncing: corrupted stack end detected inside scheduler”或“end kernel panic - not syncing: Attempted to kill init! exit code=0x0000000b”的错误,可以...
Attempted reconnect 3 times. Giving up. 解决办法:在url后面拼接?serverTimezone=UTC 连接成功后数据库不显示表 通过设置解决: scheme选择当前使用的数据库 到此这篇关于IDEA链接MySQL报错08001和连接成功...
在使用Subversion(SVN)进行版本控制时,有时可能会遇到一个常见的错误提示:“org.apache.subversion.javahl.ClientException: Attempted to lock an already-locked dir”。这个错误通常表示某个目录已经被锁定,...
We have attempted to make every algorithm accessible and interesting. To help you when you encounter unfamiliar or difficult algorithms, we describe each one in a step-bystep manner. We also provide ...
Introduction to Finite and Spectral Element Methods Using MATLAB®Second Edition This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made ...
The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has ...
The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has ...
Resource stopwords not found. Please use the NLTK Downloader to obtain the ... Attempted to load corpora/stopwords 错误解决方法。 NLTK下载停用词(stopwords)资源,下载后解压到相应目录中即可,亲测可用!
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value ...
will need to be sent to Microsoft as per the normal process. However, a log entry will be added to the normal BurnInTest log. - Changes to trace logging to reduce activity when trace logging is not...
All three of us did the first thing that came naturally and attempted to replicate our existing Excel reports in Tableau. I found that transitioning from Excel-based reporting was not always seamless...
在使用MyEclipse进行SVN提交时遇到错误:“Attempted to lock an already-locked dir”,具体表现为以下错误信息: ``` svn: Working copy 'D:/Program Files/MyEclipse 6.6flex/workspace/emis/WebRoot/emis/...
tomcat-redis-session 共享 异常解决:Race condition encountered: attempted to load session[xxx] which has been created but not yet serialized. java.lang.IllegalStateException: Race condition ...
Graph Theory has become an important ...and presentation of material, it has been attempted to accommodate elementary concepts on essential basis so as to offer guidance to those new to the field.
I have attempted to give accurate information, but cannot accept liability for any consequences or damages which may result from errors in this discussion. Accordingly, I disclaim any liability for ...