My Oracle Support Banner

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

Last updated on MARCH 26, 2021

Applies to:

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

Symptoms

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 10.1.3.1.0 the Application Fails with "java.lang.NoClassDefFoundError: org/apache/log4j/Category

and

 <Note:434313.1> Errors When Using Log4j With Webcenter 10.1.3.2.0

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.


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
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.