Unable to start embedded Tomcat [How to Solve]

Unable to start embedded Tomcat error reporting solution:

Such an error occurred when starting Eureka service. Finally, I found many methods on the Internet. After a brief understanding, it is due to the problem of JDK version. There are several dependencies after jdk9, but I use jdk13, so I will report an error. In this case, there are two solutions:

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

1、 Reduce JDK to version 1.8

2、 The following dependencies are introduced into pom.xml:

 <dependency>
     <groupId>javax.xml.bind</groupId>
     <artifactId>jaxb-api</artifactId>
     <version>2.3.1</version>
 </dependency>
 <dependency>
     <groupId>com.sun.xml.bind</groupId>
     <artifactId>jaxb-impl</artifactId>
     <version>2.3.1</version>
 </dependency>
 <dependency>
     <groupId>org.glassfish.jaxb</groupId>
     <artifactId>jaxb-runtime</artifactId>
     <version>2.3.1</version>
 </dependency>

Next, you can see the familiar interface

Read More: