After upgrade to 14.5.1 IM system would not start with error:
MSC000001: Failed to start service jboss.deployment.subunit."iam_im.ear"."user_console.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.subunit."iam_im.ear"."user_console.war".undertow-deployment: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
(...)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
Standalone 14.5.1 IM
We have upgraded the log4j from 1.x to 2.x for IM due to security factors and also excluded jboss/wildfly logging module to our Identity Manager so that IDM-EAR can use own log jars.
Disabled subsystems are located in - standalone\deployments\iam_im.ear\META_INF\jboss-deployment-structure.xml.
under <exclude-subsystems>
If in your custom code you are using 1.x logger you will see issue above.
Solution would be to upgrade custom code that points to 1.X version of logging subsystem to use 2.X version.
Workaround till this is done:
You can enable the jboss logging module for iam_ear.
standalone\deployments\iam_im.ear\META_INF\jboss-deployment-structure.xml.
under <exclude-subsystems>
change <subsystem name="logging" />
to
<!--<subsystem name="logging" /> -->