IM 14.4 CP2 on Wildfly 23 Fails To Start/Deploy - Could not initialize class org.apache.logging.log4j.core.LoggerContext
search cancel

IM 14.4 CP2 on Wildfly 23 Fails To Start/Deploy - Could not initialize class org.apache.logging.log4j.core.LoggerContext

book

Article ID: 264327

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Suite

Issue/Introduction

The errors in the Wildfly server.log file are:

ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 89) MSC000001: Failed to start service jboss.ra.deployment."iam_im.ear#policyserver.rar": org.jboss.msc.service.StartException in service jboss.ra.deployment."iam_im.ear#policyserver.rar": WFLYJCA0046: Failed to start RA deployment [iam_im.ear#policyserver.rar]

Caused by: java.lang.NoSuchFieldError: EMPTY_BYTE_ARRAY

ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 89) MSC000001: Failed to start service jboss.ra.deployment."iam_im.ear#workflow.rar": org.jboss.msc.service.StartException in service jboss.ra.deployment."iam_im.ear#workflow.rar": WFLYJCA0046: Failed to start RA deployment [iam_im.ear#workflow.rar]

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.core.LoggerContext

Environment

Release : IM 14.4 and IM 14.5

Cause

The following file within the Wildfly modules folders appears to be causing problems:

\modules\system\layers\base\org\apache\logging\log4j\api\main\log4j-api-2.14.0.jar

Resolution

Please do the following:

1. Stop Wildfly
2. Rename the Wildfly \modules\system\layers\base\org\apache\logging\log4j\api\main\log4j-api-2.14.0.jar to log4j-api-2.14.0.jar.bak
3. Delete the contents within Wildfly standalone\log and Wildfly standalone\tmp folders
4. Rename the Wildfly standlong\deployment marker files so you have castyles5.1.1.ear.dodeploy and iam_im.ear.dodeploy in that folder
5. Start Wildfly