java.lang.ClassNotFoundException: org.apache.log4j.spi.LoggerFactory When Configuring Log4J 2 for Weblogic Logging Services

(Doc ID 1987983.1)

Last updated on DECEMBER 20, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.


The official documentation for WebLogic Logging Services mentions that Log4j implementation could be used. There is no specification on which Log4j version this integration could be done.

Log4j project has launched the second release of their logger due maintenance purposes and also to adopt cutting edge technologies.

When attempting to use log4j version 2 on WebLogic Server 12.1.3 the following error occurs.




Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms