Prevent Weblogic 12c from using system's slf4j binding

后端 未结 4 1722
再見小時候
再見小時候 2020-12-07 23:48

We\'re building new systen using slf4j as logging facade. When deploying on newly Weblogic 12c, we found this error on console log:

SLF4J: Class path contain         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 00:25

    I don't believe SLF4J provides a way to force its own version, since it's based on self-discovery in the classpath.

    So, if you have administration rights on WebLogic, the simplest solution is to upgrade the SLF4J version of WebLogic to 1.6.4 by updating the file on WebLogic installation folder.

    Otherwise, you can try to build an EAR instead of a WAR and follow the recommendations here, although I doubt it will work if prefer-web-inf-classes doesn't work in a WAR.

提交回复
热议问题