Try adding to your build.gradle ... implementation "org.springframework:spring-context-indexer:5.3.28" annotationProcessor "org.springframework:spring-context-indexer:5.3.28"
On Tuesday, July 25, 2023 at 3:20:45 PM UTC-5 neilbh...@gmail.com wrote: > When I upgrade CAS from 6.4 to 6.5 I am getting the error: > > cas_6x_overlay-casuseradmin-1 | *************************** > cas_6x_overlay-casuseradmin-1 | APPLICATION FAILED TO START > cas_6x_overlay-casuseradmin-1 | *************************** > cas_6x_overlay-casuseradmin-1 | > cas_6x_overlay-casuseradmin-1 | Description: > cas_6x_overlay-casuseradmin-1 | > cas_6x_overlay-casuseradmin-1 | Parameter 0 of method > defaultCasWebflowAuthenticationExceptionHandler in > org.apereo.cas.web.flow.config.CasCoreWebflowConfiguration$CasCoreWebflowExceptionHandlingConfiguration > > required a bean of type > 'org.apereo.cas.web.flow.authentication.CasWebflowExceptionCatalog' that > could not be found. > cas_6x_overlay-casuseradmin-1 | > cas_6x_overlay-casuseradmin-1 | > cas_6x_overlay-casuseradmin-1 | Action: > cas_6x_overlay-casuseradmin-1 | > cas_6x_overlay-casuseradmin-1 | Consider defining a bean of type > 'org.apereo.cas.web.flow.authentication.CasWebflowExceptionCatalog' in your > configuration. > cas_6x_overlay-casuseradmin-1 | > > cas_6x_overlay-casuseradmin-1 | 25-Jul-2023 18:30:42.347 SEVERE [main] > org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web > application directory [/usr/local/tomcat/webapps/cas] > cas_6x_overlay-casuseradmin-1 | java.lang.IllegalStateException: > Error starting child > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:686) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1184) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1932) > cas_6x_overlay-casuseradmin-1 | at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) > cas_6x_overlay-casuseradmin-1 | at > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > cas_6x_overlay-casuseradmin-1 | at > org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) > cas_6x_overlay-casuseradmin-1 | at > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1094) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1328) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1318) > cas_6x_overlay-casuseradmin-1 | at > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > cas_6x_overlay-casuseradmin-1 | at > org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) > cas_6x_overlay-casuseradmin-1 | at > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.StandardService.startInternal(StandardService.java:428) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:922) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.Catalina.start(Catalina.java:772) > cas_6x_overlay-casuseradmin-1 | at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > cas_6x_overlay-casuseradmin-1 | at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > cas_6x_overlay-casuseradmin-1 | at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > cas_6x_overlay-casuseradmin-1 | at > java.base/java.lang.reflect.Method.invoke(Method.java:566) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478) > cas_6x_overlay-casuseradmin-1 | Caused by: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]] > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683) > cas_6x_overlay-casuseradmin-1 | ... 37 more > cas_6x_overlay-casuseradmin-1 | Caused by: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'authenticationExceptionHandler' defined in class > path resource > [org/apereo/cas/web/flow/config/CasCoreWebflowConfiguration$CasCoreWebflowActionConfiguration.class]: > > Unsatisfied dependency expressed through method > 'authenticationExceptionHandler' parameter 0; nested exception is > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'defaultCasWebflowAuthenticationExceptionHandler' > defined in class path resource > [org/apereo/cas/web/flow/config/CasCoreWebflowConfiguration$CasCoreWebflowExceptionHandlingConfiguration.class]: > > Unsatisfied dependency expressed through method > 'defaultCasWebflowAuthenticationExceptionHandler' parameter 0; nested > exception is > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > qualifying bean of type > 'org.apereo.cas.web.flow.authentication.CasWebflowExceptionCatalog' > available: expected at least 1 bean which qualifies as autowire candidate. > Dependency annotations: > {@org.springframework.beans.factory.annotation.Qualifier(value="handledAuthenticationExceptions")} > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:374) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:376) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:179) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:371) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.refresh.RefreshScope.eagerlyInitialize(RefreshScope.java:125) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.refresh.RefreshScope.start(RefreshScope.java:117) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.refresh.RefreshScope.onApplicationEvent(RefreshScope.java:112) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.refresh.RefreshScope.onApplicationEvent(RefreshScope.java:67) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:414) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.SpringApplication.run(SpringApplication.java:302) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97) > cas_6x_overlay-casuseradmin-1 | at > org.apereo.cas.util.spring.boot.AbstractCasSpringBootServletInitializer.onStartup(AbstractCasSpringBootServletInitializer.java:33) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4936) > cas_6x_overlay-casuseradmin-1 | at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > cas_6x_overlay-casuseradmin-1 | ... 38 more > cas_6x_overlay-casuseradmin-1 | Caused by: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'defaultCasWebflowAuthenticationExceptionHandler' > defined in class path resource > [org/apereo/cas/web/flow/config/CasCoreWebflowConfiguration$CasCoreWebflowExceptionHandlingConfiguration.class]: > > Unsatisfied dependency expressed through method > 'defaultCasWebflowAuthenticationExceptionHandler' parameter 0; nested > exception is > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > qualifying bean of type > 'org.apereo.cas.web.flow.authentication.CasWebflowExceptionCatalog' > available: expected at least 1 bean which qualifies as autowire candidate. > Dependency annotations: > {@org.springframework.beans.factory.annotation.Qualifier(value="handledAuthenticationExceptions")} > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:374) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:376) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:179) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:371) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1607) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1571) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1460) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1347) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) > cas_6x_overlay-casuseradmin-1 | ... 71 more > cas_6x_overlay-casuseradmin-1 | Caused by: > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > qualifying bean of type > 'org.apereo.cas.web.flow.authentication.CasWebflowExceptionCatalog' > available: expected at least 1 bean which qualifies as autowire candidate. > Dependency annotations: > {@org.springframework.beans.factory.annotation.Qualifier(value="handledAuthenticationExceptions")} > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1799) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1355) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) > cas_6x_overlay-casuseradmin-1 | at > org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) > cas_6x_overlay-casuseradmin-1 | ... 89 more > cas_6x_overlay-casuseradmin-1 | 25-Jul-2023 18:30:42.352 INFO [main] > org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web > application directory [/usr/local/tomcat/webapps/cas] has finished in > [40,797] ms > cas_6x_overlay-casuseradmin-1 | 25-Jul-2023 18:30:42.359 INFO [main] > org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler > ["http-nio-8080"] > cas_6x_overlay-casuseradmin-1 | 25-Jul-2023 18:30:42.376 INFO [main] > org.apache.catalina.startup.Catalina.start Server startup in [44933] > milliseconds > > > This is the method that I believe it is complaining about in my overlay: > > @ConditionalOnMissingBean(name = "authenticationExceptionHandler2") > @Bean > public Action authenticationExceptionHandler() { > val beans = > applicationContext.getBeansOfType(CasWebflowExceptionHandler.class, false, > true); > val handlers = new ArrayList<>(beans.values()); > AnnotationAwareOrderComparator.sort(handlers); > return new AuthenticationExceptionHandlerAction(handlers); > } > > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/07b0972b-c977-4f7f-9c47-8ec83346876an%40apereo.org.