Unable to create Lookup for log4j error after upgrading Spectrum OneClick
search cancel

Unable to create Lookup for log4j error after upgrading Spectrum OneClick

book

Article ID: 251244

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

After upgrading Spectrum OneClick to 22.2.1, the following error is displayed in the $SPECROOT/tomcat/logs/catalina.out file:

ERROR Unable to create Lookup for log4j java.lang.ClassCastException: class org.apache.logging.log4j.core.lookup.Log4jLookup

Environment

Release : 22.2

Component : SPECTRUM INSTALLATION

Cause

It seems the JndiLookup.class was removed from the $SPECROOT/tomcat/webapps/ca-nim-sm/WEB-INF/lib/log4j-core-*.jar file by mistake when performing the steps outlined in the following KB article:

https://knowledge.broadcom.com/external/article?articleId=230231

 

Resolution

As there is no Service Desk integration enabled, removed the $SPECROOT/tomcat/webapps/ca-nim-sm/ directory and bounce the Tomcat service. The ca-nim-sm.war file be re-deployed by the Tomcat restart and the new ca-nim-sm directory will be created.

Do not rename the $SPECROOT/tomcat/webapps/ca-nim-sm/ directory. You must stop the Spectrum Tomcat service and then delete the ca-nim-sm directory.