org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat

icgc.org | 1 month 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
    The solution is to run as root using sudo or to set different port in "application.properties" 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
    JHipster only supports java 7 and 8.
    via GitHub by atomfrede
  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
    via spring.io

  1. tomthomas 1 times, last 1 month ago
  2. treefolk 10 times, last 1 month ago
  3. kjhdofjosvs 2 times, last 2 months ago
  4. tvrmsmith 1 times, last 3 months ago
  5. Adarro 1 times, last 7 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 embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat

    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh()
  2. Spring Boot
    EmbeddedWebApplicationContext.onRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133)
    1 frame
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
    1 frame
  4. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760)
    3. org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
    6 frames
  5. org.icgc.dcc
    ServerMain.main
    1. org.icgc.dcc.portal.server.ServerMain.main(ServerMain.java:31)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. Spring Boot Loader
    JarLauncher.main
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
    2. org.springframework.boot.loader.Launcher.launch(Launcher.java:104)
    3. org.springframework.boot.loader.Launcher.launch(Launcher.java:61)
    4. org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
    4 frames