My Oracle Support Banner

"java.lang.ClassCastException: weblogic.logging.commons.LogFactoryImpl cannot be cast to org.apache.commons.logging.LogFactory" Error with Commons Logging Services (Doc ID 2778629.1)

Last updated on MAY 26, 2021

Applies to:

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

Symptoms

Application is configured with Commons logging as in the following document loading the respective jar files into the classpath.

https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/wllog/config_logs.html#GUID-0E1A0F78-7874-4B0F-879D-A95DB4787A3F

When the JVM parameter "-Dorg.apache.commons.logging.LogFactory=weblogic.logging.commons.LogFactoryImpl" is used to print application debug information in the logs, following error is noticed. 

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.