org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat | 4 months ago
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.
  2. 0
    samebug tip
    The solution is to run as root using sudo or to set different port in "" file, e.g. server.port=${port:8181}
  3. 0
    samebug tip
    You're probably missing the JKS keystore file or it's wrongly named, try to put it into the right path.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    You need to use the spring-boot-maven-plugin in the build section of your pom.xml.
  6. 0
    samebug tip
    To create an executable jar we need to add the spring-boot-maven-plugin to our pom.xml
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.boot.context.embedded.EmbeddedServletContainerException

    Unable to start embedded Tomcat

    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize()
  2. Spring Boot
    1. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(
    2. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(
    3. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(
    4. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(
    5. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(
    6. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(
    6 frames
  3. Spring Context
    1 frame
  4. Spring Boot
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(
    2. org.springframework.boot.SpringApplication.refresh(
    5 frames
  5. org.apache.fineract
    1. org.apache.fineract.ServerApplication.main(
    1 frame