Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Won't Fix
-
2.3.2
-
None
-
None
Description
Currently log4j1 is being used in our application with Java1.6 but due to vulnerabilities and EOL we are now trying to implement Log4j1.2 bridge in our application. We have use Log4j2.3.2 api with Log4j1.2 bridge(For Java6) but while running the application getting below ClassNotFoundException exception:
-----------------------------------------------------------------------------------------------
at com.rbsfm.wssservices.argon.MessageReader.run(MessageReader.java:150)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.AppenderSkeleton
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)
... 17 more
2022-02-03 15:25:09,564 DEBUG Stopping LoggerContext[name=3526198, org.apache.logging.log4j.core.LoggerContext@162dbb6]
-----------------------------------------------------------------------------------------------
Its looking like ApenderSkeleton class is missing from Log4j-1.2-api-2.3.2 bridge jar. Could you please suggest if there is any other bridge which can be used and compatible with java6 or we can enhance 2.3.2 bridge API.
Jars used in application :
log4j-api-2.3.2.jar
log4j-core-2.3.2.jar
log4j-1.2-api-2.3.2.jar