Web Application Cannot Deploy: java.lang.ClassNotFoundException: org.apache.log4j.Category

(Doc ID 1334702.1)

Last updated on FEBRUARY 28, 2018

Applies to:

Oracle WebLogic Server - Version 10.3.4 and later
Information in this document applies to any platform.
***Checked for relevance on 28-May-2013***


When attempting to deploy a web application on WLS 10.3.4, the following error occurs, even though there is a log4j-1.2.12.jar in WEB-INF/lib in the webapp already -

Caused By: java.lang.ClassNotFoundException: org.apache.log4j.Category
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:101)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms