Error creating bean with name tomcatservletwebserverfactory

Front50: Error starting Tomcat context. Exception #4131 Comments Issue Summary: When spinnaker starts up, Front50 service unable to start Tomcat. The error is: Cloud Provider(s): Environment: Feature Area (if this issue is UI/UX related, please tag @spinnaker/ui-ux-team ): Description: Steps to Reproduce: after starting spinnaker using sudo hal deploy apply The text was updated […]

Содержание

  1. Front50: Error starting Tomcat context. Exception #4131
  2. Comments
  3. Issue Summary:
  4. Cloud Provider(s):
  5. Environment:
  6. Feature Area (if this issue is UI/UX related, please tag @spinnaker/ui-ux-team ):
  7. Description:
  8. Steps to Reproduce:
  9. Footer

Front50: Error starting Tomcat context. Exception #4131

Issue Summary:

When spinnaker starts up, Front50 service unable to start Tomcat. The error is:

Cloud Provider(s):

Environment:

Description:

Steps to Reproduce:

after starting spinnaker using sudo hal deploy apply

The text was updated successfully, but these errors were encountered:

At the very end of the message it appears the root cause is:

I’m not too familiar with using s3 as a storage backend, but it seems that maybe front50 is trying to connect to s3 on 127.0.0.1:9090 . have you properly configured an s3 account?

I am not using spinnaker in AWS, I installed it in a local debian but I am using s3 compatible storage.
I set spinnaker.s3.versioning: false in

How can I configure s3 account?

This is Minio, right? Looks like it isn’t running on your machine. Try restarting it and looking for errors in its logs if you still can’t connect to it after the restart.

This issue hasn’t been updated in 45 days, so we are tagging it as ‘stale’. If you want to remove this label, comment:

This issue is tagged as ‘stale’ and hasn’t been updated in 45 days, so we are tagging it as ‘to-be-closed’. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:

This issue is tagged as ‘to-be-closed’ and hasn’t been updated in 45 days, so we are closing it. You can always reopen this issue if needed.

hello i got the same issue on today with spinnaker 1.15 and please help

starting front50 service error with «Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘servletEndpointRegistrar’ defined in»

I am also not using spinnaker in AWS, I installed it in a local debian and using minio s3 compatible storage.
I set spinnaker.s3.versioning: false in

starting front50 service results error «Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘servletEndpointRegistrar’ defined in»and this shows as i cannot create application or project from spinnaker . please help .

I am also facing the same issue.

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:416)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:180)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 11 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: 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 ‘applicationDAOHealthIndicator’ defined in class path resource [com/netflix/spinnaker/front50/config/Front50WebConfig.class]: Unsatisfied dependency expressed through method ‘applicationDAOHealthIndicator’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:211)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:202)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:96)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.ServletContextInitializerBeans. (ServletContextInitializerBeans.java:85)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:253)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:227)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5132)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.apache.catalina.startup.Tomcat.start(Tomcat.java:456)

[tomcat-embed-core-9.0.22.jar:9.0.22] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:105)

[spring-boot-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 16 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: 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 ‘applicationDAOHealthIndicator’ defined in class path resource [com/netflix/spinnaker/front50/config/Front50WebConfig.class]: Unsatisfied dependency expressed through method ‘applicationDAOHealthIndicator’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 56 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: 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 ‘applicationDAOHealthIndicator’ defined in class path resource [com/netflix/spinnaker/front50/config/Front50WebConfig.class]: Unsatisfied dependency expressed through method ‘applicationDAOHealthIndicator’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)

[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.createEndpointBean(EndpointDiscoverer.java:141)

[spring-boot-actuator-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.createEndpointBeans(EndpointDiscoverer.java:131)

[spring-boot-actuator-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.discoverEndpoints(EndpointDiscoverer.java:120)

[spring-boot-actuator-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getEndpoints(EndpointDiscoverer.java:114)

[spring-boot-actuator-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.endpoint.web.ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.servletEndpointRegistrar(ServletEndpointManagementContextConfiguration.java:72)

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.endpoint.web.ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration$$EnhancerBySpringCGLIB$$11a5d56f.CGLIB$servletEndpointRegistrar$0( )

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.endpoint.web.ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration$$EnhancerBySpringCGLIB$$11a5d56f$$FastClassBySpringCGLIB$$a4dc9258.invoke( )

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)

[spring-core-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)

[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.endpoint.web.ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration$$EnhancerBySpringCGLIB$$11a5d56f.servletEndpointRegistrar( )

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at java.lang.reflect.Method.invoke(Method.java:498)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 57 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: 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 ‘applicationDAOHealthIndicator’ defined in class path resource [com/netflix/spinnaker/front50/config/Front50WebConfig.class]: Unsatisfied dependency expressed through method ‘applicationDAOHealthIndicator’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 82 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: 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 ‘applicationDAOHealthIndicator’ defined in class path resource [com/netflix/spinnaker/front50/config/Front50WebConfig.class]: Unsatisfied dependency expressed through method ‘applicationDAOHealthIndicator’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 96 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAOHealthIndicator’ defined in class path resource [com/netflix/spinnaker/front50/config/Front50WebConfig.class]: Unsatisfied dependency expressed through method ‘applicationDAOHealthIndicator’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:606)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:594)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1226)

[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorRegistryBeans.get(HealthIndicatorRegistryBeans.java:42)

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration.healthIndicatorRegistry(HealthIndicatorAutoConfiguration.java:77)

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$64f39954.CGLIB$healthIndicatorRegistry$2( )

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$64f39954$$FastClassBySpringCGLIB$$ab4cc3a8.invoke( )

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)

[spring-core-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)

[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$64f39954.healthIndicatorRegistry( )

[spring-boot-actuator-autoconfigure-2.1.7.RELEASE.jar:2.1.7.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at java.lang.reflect.Method.invoke(Method.java:498)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 97 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘applicationDAO’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Unsatisfied dependency expressed through method ‘applicationDAO’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 121 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘s3StorageService’ defined in class path resource [com/netflix/spinnaker/front50/config/S3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 135 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.spinnaker.front50.model.S3StorageService]: Factory method ‘s3StorageService’ threw exception; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null), S3 Extended Request ID: null Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 149 common frames omitted Mar 07 20:32:45 lubuntu front50[2033]: Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: 15FA0DC670AF6477; S3 Extended Request ID: null) Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1712)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1367)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512)

[aws-java-sdk-core-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4926)

[aws-java-sdk-s3-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4872)

[aws-java-sdk-s3-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.amazonaws.services.s3.AmazonS3Client.headBucket(AmazonS3Client.java:1399)

[aws-java-sdk-s3-1.11.656.jar:na] Mar 07 20:32:45 lubuntu front50[2033]: at com.netflix.spinnaker.front50.model.S3StorageService.ensureBucketExists(S3StorageService.java:76)

[front50-s3-0.21.0-20200117051825.jar:0.21.0-20200117051825] Mar 07 20:32:45 lubuntu front50[2033]: at com.netflix.spinnaker.front50.config.S3Config.s3StorageService(S3Config.java:155)

[front50-s3-0.21.0-20200117051825.jar:0.21.0-20200117051825] Mar 07 20:32:45 lubuntu front50[2033]: at com.netflix.spinnaker.front50.config.S3Config$$EnhancerBySpringCGLIB$$e29f36a9.CGLIB$s3StorageService$2( )

[front50-s3-0.21.0-20200117051825.jar:0.21.0-20200117051825] Mar 07 20:32:45 lubuntu front50[2033]: at com.netflix.spinnaker.front50.config.S3Config$$EnhancerBySpringCGLIB$$e29f36a9$$FastClassBySpringCGLIB$$dfeb879e.invoke( )

[front50-s3-0.21.0-20200117051825.jar:0.21.0-20200117051825] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)

[spring-core-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)

[spring-context-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: at com.netflix.spinnaker.front50.config.S3Config$$EnhancerBySpringCGLIB$$e29f36a9.s3StorageService( )

[front50-s3-0.21.0-20200117051825.jar:0.21.0-20200117051825] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at java.lang.reflect.Method.invoke(Method.java:498)

[na:1.8.0_242] Mar 07 20:32:45 lubuntu front50[2033]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)

[spring-beans-5.1.9.RELEASE.jar:5.1.9.RELEASE] Mar 07 20:32:45 lubuntu front50[2033]: . 150 common frames omitted Mar 07 20:32:45 lubuntu systemd[1]: front50.service: Main process exited, code=exited, status=1/FAILURE Mar 07 20:32:45 lubuntu systemd[1]: front50.service: Failed with result ‘exit-code’.»>

I’ve also had this problem

Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name ‘graphQLServletRegistrationBean’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘graphQLServletRegistrationBean’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘graphQLHttpServlet’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘graphQLHttpServlet’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘graphQLServletConfiguration’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘graphQLServletConfiguration’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘invocationInputFactory’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘invocationInputFactory’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘graphQLSchemaProvider’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘graphQLSchemaProvider’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘graphQLSchema’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLJavaToolsAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘graphQLSchema’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘schemaParser’ defined in class path resource [com/oembedler/moon/graphql/boot/GraphQLJavaToolsAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.coxautodev.graphql.tools.SchemaParser]: Factory method ‘schemaParser’ threw exception; nested exception is com.coxautodev.graphql.tools.SchemaClassScannerError: Type definition for root query type ‘Query’ not found!

@zloty Hi, had you figure out how to solve the issue?

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Differences between spring and spring boot

2. Spring Boot 1.x Versions

EmbeddedServletContainerCustomizer Example

This is a Strategy interface and it is for customizing auto-configured embedded servlet containers. Any beans of this type will get a callback with the container factory before the container itself is started, so you can set the port, address, error pages, etc.

This interface has customize() method which takes as ConfigurableEmbeddedServletContainer class argument.

On ConfigurableEmbeddedServletContainer class, we can call setPort(), setContextpath() and addErrorPages() methods. All these changes are applicable to all embed servers what ever you are using.

@Component
public class CustomEmbedServerConfigrationForAllServers1_x implements EmbeddedServletContainerCustomizer {
  
    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
 
        container.setPort(8080);
        container.setContextPath("");
        container.setSessionTimeout(60); // in seconds
  
  ErrorPage errorPage = new ErrorPage(HttpStatus.NOT_FOUND, "/var/error_404.jsp");
  
  container.addErrorPages(errorPage); // adding error page.
  
     }
}

In the above code, we’ve set the port, base path and timeout time in seconds along with the error page.

Tomcat Embedded Server Specific:

There is a possibility to set container configuration changes to the Tomcat Embed server alone by using TomcatEmbeddedServletContainerFactory which is a subclass of ConfigurableEmbeddedServletContainer.

@Component
public class TomcatCustomContainer implements EmbeddedServletContainerCustomizer {
  
    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
        if (container instanceof TomcatEmbeddedServletContainerFactory) {
            TomcatEmbeddedServletContainerFactory tomcatContainer = (TomcatEmbeddedServletContainerFactory) container;
            tomcatContainer.setPort(8080);
            tomcatContainer.setContextPath("");
   
            tomcatContainer.setSessionTimeout(60); // in seconds
   
   ErrorPage errorPage = new ErrorPage(HttpStatus.BAD_REQUEST, "/var/error_400.jsp");
   container.addErrorPages(errorPage); // adding error page.
   
        }
    }
}

The same can be done for Jetty and UnderTow servers by using JettyEmbeddedServletContainerFactory and UndertowEmbeddedServletContainerFactory implementations.

3. Spring Boot 2.x Versions (Upgrade)

In Spring Boot 2, the EmbeddedServletContainerCustomizer interface is replaced by WebServerFactoryCustomizer, while the ConfigurableEmbeddedServletContainer class is replaced with ConfigurableServletWebServerFactory.

package com.javaprogram.config;

import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.stereotype.Component;

@Component
public class EmbedServerCustomConfigration implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> {

 @Override
 public void customize(ConfigurableServletWebServerFactory factory) {

  factory.setPort(9009);
  factory.setDisplayName("JavaProgramTo.com");
  factory.setServerHeader("Server header");

  factory.setContextPath("/api/v3");

 }

}

If you want to disable this custom configuration then just comment @Component annotation from the above class.

Tomcat Related Configurations:

package com.javaprogram.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.stereotype.Component;

@Component
public class TomcatEmbedServerCustomConfigration implements WebServerFactoryCustomizer<TomcatServletWebServerFactory> {

 private Logger logger = LoggerFactory.getLogger(getClass());

 @Override
 public void customize(TomcatServletWebServerFactory factory) {
  logger.info("Setting the Tomcat specific configurations. started");
  factory.setPort(9009);
  factory.setDisplayName("JavaProgramTo.com");
  factory.setServerHeader("Server header of tomcat");

  factory.setContextPath("/api/v4");
  logger.info("Setting the Tomcat specific configurations. ended");
 }

}

Output:

2020-04-18 12:13:09.679  INFO 58221 --- [           main] c.j.s.SpringBootAppApplication           : No active profile set, falling back to default profiles: default
2020-04-18 12:13:11.107  INFO 58221 --- [           main] .j.c.TomcatEmbedServerCustomConfigration : Setting the Tomcat specific configurations. started
2020-04-18 12:13:11.107  INFO 58221 --- [           main] .j.c.TomcatEmbedServerCustomConfigration : Setting the Tomcat specific configurations. ended
2020-04-18 12:13:11.294  INFO 58221 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 9009 (http)

Endpont should be : localhost:9009/api/v4/headers/individual/default
here version chaned to v4.

Similarly, we have the JettyServletWebServerFactory and UndertowServletWebServerFactory as equivalents for the removed JettyEmbeddedServletContainerFactory and UndertowEmbeddedServletContainerFactory.

5. Exceptions

If the server context path does not start with «/» then will get the below error. Need to change to «/api/v3» instead of «api/v3». This is the exception that I faced during developing of this use case.

End point: localhost:9009/api/v3/headers/individual/default

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: ContextPath must start with '/' and not end with '/'
 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at com.javaprogram.springbootapp.SpringBootAppApplication.main(SpringBootAppApplication.java:16) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: ContextPath must start with '/' and not end with '/'
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:603) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:210) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 ... 8 common frames omitted
Caused by: java.lang.IllegalArgumentException: ContextPath must start with '/' and not end with '/'
 at org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory.checkContextPath(AbstractServletWebServerFactory.java:133) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory.setContextPath(AbstractServletWebServerFactory.java:122) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at com.javaprogram.config.EmbedServerCustomConfigration.customize(EmbedServerCustomConfigration.java:17) ~[classes/:na]
 at com.javaprogram.config.EmbedServerCustomConfigration.customize(EmbedServerCustomConfigration.java:1) ~[classes/:na]
 at org.springframework.boot.web.server.WebServerFactoryCustomizerBeanPostProcessor.lambda$postProcessBeforeInitialization$0(WebServerFactoryCustomizerBeanPostProcessor.java:72) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.util.LambdaSafe$Callbacks.lambda$null$0(LambdaSafe.java:287) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.util.LambdaSafe$LambdaSafeCallback.invoke(LambdaSafe.java:159) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.util.LambdaSafe$Callbacks.lambda$invoke$1(LambdaSafe.java:286) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at java.util.ArrayList.forEach(ArrayList.java:1257) ~[na:1.8.0_161]
 at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1080) ~[na:1.8.0_161]
 at org.springframework.boot.util.LambdaSafe$Callbacks.invoke(LambdaSafe.java:286) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.web.server.WebServerFactoryCustomizerBeanPostProcessor.postProcessBeforeInitialization(WebServerFactoryCustomizerBeanPostProcessor.java:72) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.boot.web.server.WebServerFactoryCustomizerBeanPostProcessor.postProcessBeforeInitialization(WebServerFactoryCustomizerBeanPostProcessor.java:58) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:416) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
 ... 16 common frames omitted

5. Conclusion

In this article, We’ve seen how to replace EmbeddedServletContainerCustomizer and ConfigurableEmbeddedServletContainer in Spring Boot 2. Example programs on setting custom configurations in 1.x and 2.x versions.

And also seen the common errors that come as part of the development and are specific to embed servers for Tomcat, Jetty and Undertow servers.

GitHub

Tomcat Specific code

First of all, the «SSL_» settings you have attached is introduced in 3.3.2 (I am talking about SSL_, not MQTT_*). So, the specific settings you have attached can’t cause the issue during the upgrade. They were not present in 3.3.1.
Second, the «classpath:» settings are something you should avoid. See the official docs about how to set up the HTTPS and MQTTS. It has important notice:

Make sure the certificate files are reachable by ThingsBoard process:

Linux: use /etc/thingsboard/conf folder. Make sure the files have the same permissions as thingsboard.conf; Use relative file path, e.g. server.pem;
Docker Compose: mount or use existing volume to /config folder of the container; Use full file path, e.g. /config/server.pem;
K8S: mount separate volume to /https-config or similar folder. Use full file path, e.g. /https-config/server.pem;
Windows: use C:Program Files (x86)thingsboardconf folder. Make sure the files have the same permissions as thingsboard.conf; Use relative file path, e.g. server.pem;

Third, yes, we test for backward compatibility during updates. We intentionally set default credentials type to PEM since it is more common for new users and we also added a fallback to JKS if the *.pem file is missing.

Forth, our mail server is provided by G-suite, it is nearly perfect and we have minimal issues with it. I suspect either your email server blocks some specific content or you type the email address instead of copy-pasting it.

I have tried to change the default port in my SpringBoot application from 8080 to 8888 by adding the server.port property to my SpringBoot’s application.properrties file.
After the change, I am seeing the following exception while starting


  .   ____          _            __ _ _
 /\ / ___'_ __ _ _(_)_ __  __ _    
( ( )___ | '_ | '_| | '_ / _` |    
 \/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |___, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.6.RELEASE)

2019-07-04 23:29:17.980  INFO 4925 --- [           main] com.oc.springsample.Start                : Starting Start on MacBook-Pro-6.local with PID 4925 (/springsample/target/classes started by foo in /springsample)
2019-07-04 23:29:17.983  INFO 4925 --- [           main] com.oc.springsample.Start                : No active profile set, falling back to default profiles: default
2019-07-04 23:29:18.560  WARN 4925 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'servletWebServerFactoryCustomizer' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryAutoConfiguration.class]: Unsatisfied dependency expressed through method 'servletWebServerFactoryCustomizer' parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'server-org.springframework.boot.autoconfigure.web.ServerProperties': Could not bind properties to 'ServerProperties' : prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'server.port' to java.lang.Integer
2019-07-04 23:29:18.568  INFO 4925 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-07-04 23:29:18.571 ERROR 4925 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'server.port' to java.lang.Integer:

    Property: server.port
    Value: 8888 // comments
    Origin: class path resource [application.properties]:1:15
    Reason: failed to convert java.lang.String to java.lang.Integer

Action:

Update your application's configuration

Following is the content in my application.properties file

server.port = 8888 // changed port to 8888

I am new to spring-boot. So after bootstrapping a project from spring initializr, I was trying to run it on intellij. But I am getting error while starting it.

Following are the versions:
Java : 8
Spring-boot: 2.0.6
I have tried changing the spring boot version but it didn’t help.
Also changed the server port in application.properties but that also didn’t help.

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.6.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>ghosh.debarshi</groupId>
<artifactId>spring5webapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring5webapp</name>
<description>Demo project for Spring Boot</description>

<properties>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

stack trace:

   Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
        If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
        If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

[WARNING] 
java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:497)
    at java.lang.Thread.run (Thread.java:834)
Caused by: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:155)
    at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:542)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:140)
    at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:754)
    at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:386)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:307)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1242)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1230)
    at ghosh.debarshi.spring5webapp.Spring5webappApplication.main (Spring5webappApplication.java:10)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:497)
    at java.lang.Thread.run (Thread.java:834)
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:126)
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init> (TomcatWebServer.java:86)
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:413)
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:174)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:179)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:152)
    at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:542)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:140)
    at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:754)
    at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:386)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:307)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1242)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1230)
    at ghosh.debarshi.spring5webapp.Spring5webappApplication.main (Spring5webappApplication.java:10)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:497)
    at java.lang.Thread.run (Thread.java:834)
Caused by: 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.BeanCreationException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthEndpoint]: Factory method 'healthEndpoint' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$83c4f158]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

Hi,

I just updated to the v 7.0.0 of the spring boot adapter. My application failed to start with the error :

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.keycloak.adapters.springboot.KeycloakAutoConfiguration': Unsatisfied dependency expressed through method 'setKeycloakSpringBootProperties' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 'keycloakConfigResolver'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'KeycloakConfigResolver': Requested bean is currently in creation: Is there an unresolvable circular reference?

After overwrite the KeycloakSpringBootConfigResolver by the one of the v6.0.1, everything is ok. It seem’s to be the commit a58a0e76786b9a0146038188f83359d8a49ecf55, that remove static field, that cause the problem.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error creating bean with name suncryptographer
  • Error creating bean with name router function mapping
  • Error creating bean with name resource handler mapping
  • Error creating bean with name kafkalistenercontainerfactory
  • Error creating bean with name defined in file

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии