My Oracle Support Banner

Log4j Initialization Error in WebServices Deploy With prefer-web-inf-classes=true (Doc ID 2266334.1)

Last updated on APRIL 19, 2023

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Apache log4j initialization error is generated when WebServices is deployed and initialized.

When log4j.jar is existing in both the system classpath and WEB-INF/lib, and prefer-web-inf-classes is true in weblogic.xml.

Classes in log4j.jar should be loaded from WEB-INF/lib but it is loaded from system classpath when WebServices is deployed. Then the following log4j error is logged.

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.