My Oracle Support Banner

Operation failed with error: org/apache/log4j/Category when deployment (Doc ID 1306163.1)

Last updated on MARCH 28, 2022

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.


When deploying a WAR file using the Application Server Console (AS Console) the following error occurs.

The following notes have been used.

<Note:460448.1> After Upgrading from the Application Fails with "java.lang.NoClassDefFoundError: org/apache/log4j/Category


 <Note:434313.1> Errors When Using Log4j With Webcenter

The commons-logging.jar was placed in the ORACLE_HOME/j2ee/<instance>/applib folder and this entry was made in the ORACLE_HOME/j2ee/<instance>/config/application.xml file,

<import-shared-library name="apache.commons.logging"/>

It did not resolve the error.


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

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