Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25951 Support Bigtop stack 3.3.0
  3. AMBARI-25992

logsearch-portal cannot startup due to spring-boot-autoconfigure upgrade

    XMLWordPrintableJSON

Details

    Description

      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: {}

       

      Attachments

        Issue Links

          Activity

            People

              rongguo.zuo@gmail.com Robin Zuo
              rongguo.zuo@gmail.com Robin Zuo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: