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.

Stack Overflow | pkgajulapalli | 2 weeks ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    You need to use the spring-boot-maven-plugin in the build section of your pom.xml.
  2. 0
    samebug tip
    To create an executable jar we need to add the spring-boot-maven-plugin to our pom.xml
    via spring.io
  3. 0

    spark-yarn task doesn't start

    GitHub | 2 weeks ago | jvalkeal
    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

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

    com.cn | 5 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.
  6. 0

    Spring Boot 1.4.0 never starts successfully

    Stack Overflow | 5 months ago | Badal Baidya
    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.

  1. tomthomas 1 times, last 1 month ago
  2. treefolk 10 times, last 1 month ago
  3. kjhdofjosvs 2 times, last 1 month ago
  4. tvrmsmith 1 times, last 2 months ago
  5. Adarro 1 times, last 6 months ago
8 more registered users
78 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 EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory()
  2. Spring Boot
    EmbeddedWebApplicationContext.onRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:189)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    2. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    3. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    3 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536)[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
    1 frame
  4. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
    6 frames
  5. com.walmart
    Application.main
    1. com.walmart.Application.main(Application.java:9)[classes!/:0.1.0]
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_85]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_85]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_85]
    4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_85]
    4 frames
  7. Spring Boot Loader
    JarLauncher.main
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)[hiveSteaming-0.1.0.jar:0.1.0]
    2. org.springframework.boot.loader.Launcher.launch(Launcher.java:87)[hiveSteaming-0.1.0.jar:0.1.0]
    3. org.springframework.boot.loader.Launcher.launch(Launcher.java:50)[hiveSteaming-0.1.0.jar:0.1.0]
    4. org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)[hiveSteaming-0.1.0.jar:0.1.0]
    4 frames