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
    The solution is to run as root using sudo or to set different port in "" file, e.g. server.port=${port:8181}
  2. 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.
  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.apache.catalina.LifecycleException

    A child container failed during start

    at org.apache.catalina.core.ContainerBase.startInternal()
  2. Glassfish Core
    1. org.apache.catalina.core.ContainerBase.startInternal(
    2. org.apache.catalina.core.StandardEngine.startInternal(
    3. org.apache.catalina.util.LifecycleBase.start(
    4. org.apache.catalina.core.StandardService.startInternal(
    5. org.apache.catalina.util.LifecycleBase.start(
    6. org.apache.catalina.core.StandardServer.startInternal(
    7. org.apache.catalina.util.LifecycleBase.start(
    8. org.apache.catalina.startup.Tomcat.start(
    8 frames
  3. 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
  4. Spring Context
    1 frame
  5. Spring Boot
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(
    2. org.springframework.boot.SpringApplication.refresh(
    5 frames
  6. SignAuthenticate.eightball.web
    1. SignAuthenticate.eightball.web.EightballdemoApplication.main(
    1 frame
  7. Java RT
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(
    4. java.lang.reflect.Method.invoke(
    4 frames
  8. IDEA
    1. com.intellij.rt.execution.application.AppMain.main(
    1 frame