After upgrade to 14.4 IDM jboss is not starting up. Please find the below error .
16:03:23,824 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 83) Context initialization failed: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.getAnnotationAttributes(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/String;)Lorg/springframework/core/annotation/AnnotationAttributes;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiredAnnotation(AutowiredAnnotationBeanPostProcessor.java:429) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:272) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1059) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1032) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) [spring-beans-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:220) [spring-context-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:615) [spring-context-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465) [spring-context-4.1.1.RELEASE.jar:4.1.1.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) [spring-web-5.2.12.RELEASE_backup.jar:5.2.12.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) [spring-web-5.2.12.RELEASE_backup.jar:5.2.12.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) [spring-web-5.2.12.RELEASE_backup.jar:5.2.12.RELEASE]
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1493)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1493)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1493)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1493)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_311]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_311]
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_311]
at org.jboss.threads.JBossThread.run(JBossThread.java:485)
16:03:23,828 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 83) MSC000001: Failed to start service jboss.deployment.subunit."iam_im.ear"."wpServer.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.subunit."iam_im.ear"."wpServer.war".undertow-deployment: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.getAnnotationAttributes(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/String;)Lorg/springframework/core/annotation/AnnotationAttributes;
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81) [wildfly-undertow-7.2.9.GA-redhat-00003.jar:7.2.9.GA-redhat-00003]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_311]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_311]
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001]
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001]
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001]
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_311]
at org.jboss.threads.JBossThread.run(JBossThread.java:485) [jboss-threads-2.3.3.Final-redhat-00001.jar:2.3.3.Final-redhat-00001]
Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.getAnnotationAttributes(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/String;)Lorg/springframework/core/annotation/AnnotationAttributes;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiredAnnotation(AutowiredAnnotationBeanPostProcessor.java:429)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:272)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1032)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:220)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:615)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) [wildfly-undertow-7.2.9.GA-redhat-00003.jar:7.2.9.GA-redhat-00003]
Release : 14.4
Component : IdentityMinder(Identity Manager)
There are conflicting versions of jar files being loaded by the application server. In this example you can see reference to spring-web-5.2.12.RELEASE in the java error stack which points to what can be the cause of the problem.
This can happen if using the Patch Deployer Tool in the originally posted CP2 package.
In this case the older conflicting jar files had to be removed from the deployed iam_im.ear file in ../iam_im.ear/user_console.war/WEB-INF/lib and then IM restarted.
You can also download the revised CP2 package which was updated on 07-03-2023 which contains an updated Patch Deployer Tool that corrects the problem.
https://support.broadcom.com/web/ecx/solutiondetails?aparNo=99111624&os=MULTI-PLATFORM
The java error stack could be showing other jar file names instead for example spring-web-4.0.5.RELEASE.jar in which case you would need to check for that jar file being present and causing a conflict instead.
On 14.4 CP2 CP Deployer might not remove older jar files, leading to the same conflict, older files should be removed if both new and old version exist, example below:
[caidm@idm-test wildflyIDM-14.4.2]$ find -type f -name *spring*| sort
./modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring-jar/resteasy-spring-3.6.2.Final.jar
./standalone/deployments/iam_im.ear/ca-nim-sm.war/license/springframework 3.2.8.txt
./standalone/deployments/iam_im.ear/library/spring-aop-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-aop-5.3.18.jar
./standalone/deployments/iam_im.ear/library/spring-beans-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-beans-5.3.18.jar
./standalone/deployments/iam_im.ear/library/spring-context-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-context-5.3.18.jar
./standalone/deployments/iam_im.ear/library/spring-core-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-core-5.3.18.jar
./standalone/deployments/iam_im.ear/library/spring-expression-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-expression-5.3.18.jar
./standalone/deployments/iam_im.ear/library/spring-tx-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-tx-5.3.18.jar
./standalone/deployments/iam_im.ear/library/spring-web-4.0.5.RELEASE.jar
./standalone/deployments/iam_im.ear/library/spring-web-5.3.18.jar
./standalone/deployments/iam_im.ear/user_console.war/WEB-INF/lib/spring-ldap-core-2.3.1.RELEASE.jar
./standalone/deployments/iam_im.ear/user_console.war/WEB-INF/lib/spring-ldap-core-2.4.1.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-jdbc-4.1.1.RELEASE.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-jdbc-5.3.18.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-oxm-4.0.5.RELEASE.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-oxm-5.3.18.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-webmvc-4.0.5.RELEASE.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-webmvc-5.3.18.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-ws-core-2.2.0.RELEASE.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-ws-core-3.1.3.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-xml-2.2.0.RELEASE.jar
./standalone/deployments/iam_im.ear/wpServer.war/WEB-INF/lib/spring-xml-3.1.3.jar