My Oracle Support Banner

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

Last updated on JULY 31, 2018

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.

[16/07/2009 06:03:23] Operation failed with error: org/apache/log4j/Category

This is logged in the OC4J log file.


Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(
at java.lang.Class.getConstructor0(
at java.lang.Class.getConstructor(
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(
... 22 more

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.