【发布时间】:2014-08-01 13:52:15
【问题描述】:
嗯,这很尴尬。我想使用 log4j-over-slf4j 进行日志记录,因此我已将 jar 添加到项目中并在 WebLogic 应用程序中指定使用包 org.slf4j.* 但问题是 WebLogic 上的 commons jar 库具有 slf4j-造成冲突的 log4j12.jar:
java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
如何让 WebLogic 忽略该包?
【问题讨论】: