Generating an Encrypted Password for My webMethods Server for replacing keystores

Hello Folks,

When trying to run the command to run the encrypt the password for custom_wrapper.conf for replacing the default keystores.

I keep running into the below error:

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager
at com.webmethods.caf.common.CipherUtil.initLogging(
at com.webmethods.caf.common.CipherUtil.(
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
… 2 more

This is for version 10.7. Any leads to resolve this, thanks.

Dear Srivastava,

Please post the exact command you are using.

Here’s the command:

./java -cp “/u01/SoftwareAG_MWS/common/lib/wm-caf-common.jar:/u01/SoftwareAG_MWS/common/lib/ext/slf4j-api.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-security.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-core.jar:/u01/SoftwareAG_MWS/common/lib/ext/enttoolkit.jar*” com.webmethods.caf.common.CipherUtil password

I will check and get back to you soon. However as a pointer, please check if your java runtime is java 8 or not as java 11 or 16 might have few modules missing due to modular structure.

For wM 9.12 I was able to made this command working while the command described in the Admin Guide was incorrect:

 java -cp common/lib/wm-caf-common.jar:common/lib/ext/log4j.jar com.webmethods.caf.common.CipherUtil <password>


This got resolved by referring to the exact jar in log4j folder rather than using log4j*…


Hi Basu,

please consider sharing the complete exact command line as a reference for further usage.


Here you go (this for 10.7):

./java -cp “/u01/SoftwareAG_MWS/common/lib/wm-caf-common.jar:/u01/SoftwareAG_MWS/common/lib/ext/slf4j-api.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-security.jar:/u01/SoftwareAG_MWS/common/lib/wm-scg-core.jar:/u01/SoftwareAG_MWS/common/lib/ext/enttoolkit.jar:/u01/SoftwareAG_MWS/common/lib/ext/log4j/log4j-slf4j-impl.jar:/u01/SoftwareAG_MWS/common/lib/ext/log4j/log4j-api.jar:/u01/SoftwareAG_MWS/common/lib/ext/log4j/log4j-core.jar” com.webmethods.caf.common.CipherUtil

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.