org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyConfiguration': Unsatisfied dependency expressed through field 'clientFactory': No qualifying bean of type [org.springframework.cloud.netflix.ribbon.SpringClientFactory] found for dependency [org.springframework.cloud.netflix.ribbon.SpringClientFactory]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.netflix.ribbon.SpringClientFactory] found for dependency [org.springframework.cloud.netflix.ribbon.SpringClientFactory]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

GitHub | avvarus | 3 months ago
  1. 0

    GitHub comment 265#243560605

    GitHub | 3 months ago | avvarus
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyConfiguration': Unsatisfied dependency expressed through field 'clientFactory': No qualifying bean of type [org.springframework.cloud.netflix.ribbon.SpringClientFactory] found for dependency [org.springframework.cloud.netflix.ribbon.SpringClientFactory]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.netflix.ribbon.SpringClientFactory] found for dependency [org.springframework.cloud.netflix.ribbon.SpringClientFactory]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  2. 0

    Gradle: Build 'fat jar' with Spring Boot Dependencies

    Stack Overflow | 1 year ago | user1445967
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
  3. 0

    springboot 1.4升级中遇到的奇葩问题 - 易极客

    com.cn | 2 months ago
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Including spring-cloud-starter-eureka-server in dependencies causes application startup to fail

    GitHub | 2 years ago | sampengilly
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
  6. 0

    spring boot with spring security : Error creating bean with name 'securityFilterChainRegistration'

    Stack Overflow | 2 years ago | Kian
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat

  1. Adarro 1 times, last 4 months ago
  2. Nikolay Rybak 7 times, last 4 months ago
  3. schoetty 3 times, last 7 months ago
  4. fima 2 times, last 2 months ago
  5. Shadd518 1 times, last 3 months ago
3 more registered users
77 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.context.ApplicationContextException

    Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyConfiguration': Unsatisfied dependency expressed through field 'clientFactory': No qualifying bean of type [org.springframework.cloud.netflix.ribbon.SpringClientFactory] found for dependency [org.springframework.cloud.netflix.ribbon.SpringClientFactory]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.netflix.ribbon.SpringClientFactory] found for dependency [org.springframework.cloud.netflix.ribbon.SpringClientFactory]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh()
  2. Spring Boot
    EmbeddedWebApplicationContext.onRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    1 frame
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  4. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    4 frames
  5. org.springframework.boot
    SpringBootServletInitializer.onStartup
    1. org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:150)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    2. org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:130)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3. org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3 frames
  6. Spring
    SpringServletContainerInitializer.onStartup
    1. org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  7. WebSphere
    ContextManagerImpl.runAsSystem
    1. com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)[com.ibm.ws.webcontainer.jar:na]
    2. com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)[com.ibm.ws.webcontainer.jar:na]
    3. com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)[com.ibm.ws.webcontainer.jar:na]
    4. com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)[com.ibm.ws.webcontainer.jar:na]
    5. com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)[com.ibm.ws.webcontainer.jar:na]
    6. com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)[com.ibm.ws.webcontainer.jar:na]
    7. com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)[com.ibm.ws.webcontainer.jar:na]
    8. com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)[com.ibm.ws.webcontainer.jar:na]
    9. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)[com.ibm.ws.runtime.jar:na]
    10. com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)[com.ibm.ws.runtime.jar:na]
    11. com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)[com.ibm.ws.runtime.jar:na]
    12. com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)[com.ibm.ws.runtime.jar:na]
    13. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:776)[com.ibm.ws.runtime.jar:na]
    14. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1379)[com.ibm.ws.runtime.jar:na]
    15. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2189)[com.ibm.ws.runtime.jar:na]
    16. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:446)[com.ibm.ws.runtime.jar:na]
    17. com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)[com.ibm.ws.runtime.jar:na]
    18. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)[com.ibm.ws.runtime.jar:na]
    19. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:117)[com.ibm.ws.runtime.jar:na]
    20. com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:664)[com.ibm.ws.runtime.jar:na]
    21. com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5384)[com.ibm.ws.runtime.jar:na]
    22. com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)[com.ibm.ws.runtime.jar:na]
    22 frames
  8. com.ibm.ws
    SecurityContext.runAsSystem
    1. com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)[com.ibm.ws.runtime.jar:na]
    1 frame
  9. WebSphere
    ApplicationMgrImpl.startApplication
    1. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:678)[com.ibm.ws.runtime.jar:na]
    2. com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:622)[com.ibm.ws.runtime.jar:na]
    3. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1269)[com.ibm.ws.runtime.jar:na]
    3 frames
  10. Java RT
    JmxMBeanServer.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)[na:1.7.0]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)[na:1.7.0]
    4. java.lang.reflect.Method.invoke(Method.java:620)[na:2.6 (06-30-2016)]
    5. sun.reflect.misc.Trampoline.invoke(MethodUtil.java:88)[na:1.7.0]
    6. sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)[na:na]
    7. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)[na:1.7.0]
    8. java.lang.reflect.Method.invoke(Method.java:620)[na:2.6 (06-30-2016)]
    9. sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:292)[na:1.7.0]
    10. javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1261)[na:1.7.0]
    11. java.security.AccessController.doPrivileged(AccessController.java:422)[na:1.7.0]
    12. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:88)[na:1.7.0]
    13. javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1255)[na:1.7.0]
    14. javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1093)[na:1.7.0]
    15. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:832)[na:1.7.0]
    16. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:814)[na:1.7.0]
    16 frames
  11. WebSphere
    AdminServiceImpl$1.run
    1. com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)[com.ibm.ws.admin.core.jar:na]
    1 frame