Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.

ITWeb/개발일반 2012. 6. 22. 09:41

[원본링크]


[내용발췌]

log4j-over-slf4j.jar and slf4j-logj12.jar cannot be present simultaneously

The presence of slf4j-logj12.jar, that is the log4j binding for SLF4J, will force all SLF4J calls to be delegated to log4j. The presence of log4j-over-slf4j.jar will in turn delegate all log4j API calls to their SLF4J equivalents. If both are present simultaneously, slf4j calls will be delegated to log4j, and log4j calls redirected to SLF4j, resulting in an endless loop.


팀에서 사용하고 있는 프로젝트 중에 저런 에러가 발생하길래 찾아본 내용입니다.

재밌는건 VM 장비상에서 어디서는 에러가 나고 어디서는 운좋게 에러가 안나고.. 참나.. 일관성 없다니까..

둘 중에 하나 삭제 하고 실행하면 잘 됩니다.


그냥 아쉬워서.. 그림 한장.. 추가요..



: