[ https://issues.apache.org/jira/browse/AMBARI-25992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated AMBARI-25992: ------------------------------------ Labels: pull-request-available (was: ) > logsearch-portal cannot startup due to spring-boot-autoconfigure upgrade > ------------------------------------------------------------------------ > > Key: AMBARI-25992 > URL: https://issues.apache.org/jira/browse/AMBARI-25992 > Project: Ambari > Issue Type: Technical task > Components: ambari-logsearch > Reporter: Robin Zuo > Assignee: Robin Zuo > Priority: Major > Labels: pull-request-available > > ambari-logsearch-portal server cannot startup. > After spring-boot upgrade from 2.0.6.RELEASE to 2.1.5.RELEASE, due to the > change of class LdapAutoConfiguration, spring need the LdapTemplate bean > during startup. > Without the LdapTemplate bean, logsearch-portal server report the following > error: > 2023-08-11 06:28:24,471 [main] WARN org.eclipse.jetty.webapp.WebAppContext > (WebAppContext.java:554) - Failed startup of context > o.s.b.w.e.j.JettyEmbeddedWebAppContext@6e8fdd19\{application,/,[file:///tmp/jetty-docbase.7488131157696980871.61888/, > > jar:file:/usr/lib/ambari-logsearch-portal/libs/swagger-ui-3.19.0.jar!/META-INF/resources],UNAVAILABLE} > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'servletEndpointRegistrar' defined in class path resource > [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: > Bean instantiation via factory method failed; nested exception is > org.springframework.beans.BeanInstantiationException: Failed to instantiate > [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: > Factory method 'servletEndpointRegistrar' threw exception; nested exception > is org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'healthEndpoint' defined in class path resource > [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: > Unsatisfied dependency expressed through method 'healthEndpoint' parameter > 1; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'healthIndicatorRegistry' defined in class path resource > [org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorAutoConfiguration.class]: > Bean instantiation via factory method failed; nested exception is > org.springframework.beans.BeanInstantiationException: Failed to instantiate > [org.springframework.boot.actuate.health.HealthIndicatorRegistry]: Factory > method 'healthIndicatorRegistry' threw exception; nested exception is > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name > 'org.springframework.boot.actuate.autoconfigure.ldap.LdapHealthIndicatorAutoConfiguration': > Unsatisfied dependency expressed through constructor parameter 0; nested > exception is > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'ldapTemplate' defined in class path resource > [org/springframework/boot/autoconfigure/ldap/LdapAutoConfiguration.class]: > Unsatisfied dependency expressed through method 'ldapTemplate' parameter 0; > nested exception is > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > qualifying bean of type 'org.springframework.ldap.core.ContextSource' > available: expected at least 1 bean which qualifies as autowire candidate. > Dependency annotations: {} > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org