Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger when using the pwdtools.sh
search cancel

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger when using the pwdtools.sh

book

Article ID: 366791

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

Running pwdtools.sh and receive the following:

cd /opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/PasswordTool

 ./pwdtools.sh -FIPS -p somepassword -k /opt/CA/FIPSkey.dat 

--------------------------------------------------

Your JAVA_HOME is currently set to /opt/java

--------------------------------------------------

Encrypting your password ...

******************************************

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger        

Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger        

Environment

Standalone
Linux
Identity Manager
Version 14.4

Cause

Needed files did not exist in the password tools folder

Resolution

Compared to working 14.4 system and found log4j-api-2.12.0 and log4j-core-2.12 did not exist.  Moved over these files from the working system to the new system and  are located in the PasswordTool folder.

/opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/PasswordTool