嗯,这很尴尬。我想使用log4j-over-slf4j进行日志记录,因此我已将jar添加到项目中并在WebLogic应用程序中指定使用包org.slf4j.*
,但问题是公共jar库是WebLogic的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忽略该包?