ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Error when running coracleanup : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger at com.ca.Cora.util.ConsoleManager.<clinit>(ConsoleManager.java:24)

book

Article ID: 241400

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

When running coracleanup, the following error appears:


Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger at com.ca.Cora.util.ConsoleManager.<clinit>(ConsoleManager.java:24)


Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

Cause

Defect with 17.3 RU 12 to RU 15

Environment

Release : 17.3

Component : SDM - Configuration Management (CMDB/Visualizer/Grloader)

Resolution

Solution:

This defect will be solved in 17.3 RU 16 (ETA: End of July 2022).

Workaround:

Update the coracleanup.cmd to point to log4j-1.2.17-cloudera1.jar instead of log4j-1.2.17.jar

Example:

"%NX_JRE_INSTALL_DIR%/bin/java" -DLOG_CONFIG_DIR="%NX_ROOT%/site/cora_cfg" -ea -classpath "%NX_ROOT%/java/lib/corajava.jar;%NX_ROOT%/java/lib/cora_util.jar;%NX_ROOT%/java/lib/log4j-1.2.17-cloudera1.jar;%NX_ROOT%/java/lib/ojdbc8.jar;%NX_ROOT%/java/lib/mssql-jdbc-7.2.2.jre8.jar" com.ca.Cora.util.ConsoleManager %args%