In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to solve the failure of spring cloud eureka service startup". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Environment: 2.3.5.RELEASE Hoxton.SR8 error log
Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-03-15 21 o.s.boot.SpringApplication 56 Application run failed 29.508 ERROR 18232-[main]
Org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
At org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:161) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:545) ~ [spring-context-5.2.10.RELEASE.jar:5.2.10.RELEASE]
At org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:143) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.SpringApplication.refresh (SpringApplication.java:758) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.SpringApplication.refresh (SpringApplication.java:750) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:405) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.SpringApplication.run (SpringApplication.java:315) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.SpringApplication.run (SpringApplication.java:1237) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.SpringApplication.run (SpringApplication.java:1226) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At com.imooc.registry.RegistryApp.main (RegistryApp.java:16) ~ [classes/:na]
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
At org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:142) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.web.embedded.tomcat.TomcatWebServer. (TomcatWebServer.java:104) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory.java:440) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory.java:193) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext.java:178) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh (ServletWebServerApplicationContext.java:158) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
... 9 common frames omitted
Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat]. StandardHost[localhost] .TomcatEmbeddedContext [] failed to start
At org.springframework.boot.web.embedded.tomcat.TomcatWebServer.rethrowDeferredStartupExceptions (TomcatWebServer.java:187) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
At org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer.java:126) ~ [spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
... 14 common frames omitted
Reason: there is a problem with the spring cloud version, just change it to the following version
Hoxton.SR12
Spring official version address: (https://start.spring.io/actuator/info)
{"git": {"branch": "7857199786b4ffba883304a75dfbaac342ffaa51", "commit": {"id": "7857199", "time": "2022-03-15T07:59:46Z"}}, "build": {"version": "0.0.1-SNAPSHOT", "artifact": "start-site" "versions": {"spring-boot": "2.6.4", "initializr": "0.13.0-SNAPSHOT"}, "name": "start.spring.io website", "time": "2022-03-15T08:01:37.995Z", "group": "io.spring.start"} "bom-ranges": {"azure": {"3.2.0": "Spring Boot > = 2.3.0.M1 and = 2.4.0.M1 and = 2.5.0.M1 and = 2.3.0.M1 and = 2.6.0.M1 and = 2.3.0.M1 and = 2.3.0.M1 and = 2.4.0.M1 and = 2.2.0.RELEASE and = 2. 4.0.M1 and = 2.6.0-M1 and = 2.6.0-M3 and = 2.6.0-RC1 and = 2.6.1 and = 2.6.5-SNAPSHOT and = 3.0.0-M1 and = 2.4.0-M1 and = 2.6.0-M1 and = 2.3.0.RELEASE and = 2.4.0-M1 and = 2.5.0-M1 and = 2.6.0-M1 and = 2.3.0.M1 and = 2.4.0-M1 and = 2.5. 0-M1 and = 2.6.0-M1 and = 2.7.0-M1 and = 3.0.0-M1 and = 2.1.0.RELEASE and = 2.6.0-M1 and = 2.1.0.RELEASE and = 2.4.0-M1 and = 2.5.0-M1 and = 2.4.3 and = 2.4.4 and = 2.4.5 and = 2.5.0-M1 and = 2.5.2 and = 2.5.3 and = 2.5.4 and = 2.5.5 and = 2. 5.6 and = 2.5.9 and = 2.6.0-M1 and = 2.6.0-RC1 and = 2.6.0 and = 2.6.1 and = 2.6.2 and = 2.6.3 and = 2.6.4 and = 2.6.5-SNAPSHOT and = 2.2.0.RELEASE and = 2.4.0-M1 and = 2.4.1 and = 2.5.0-M1 and = 2.1.0.RELEASE and = 2.5.0-M1 "} "camel": {"3.5.0": "Spring Boot > = 2.3.0.M1 and = 2.4.0.M1 and = 2.5.0.M1 and = 2.6.0.M1 and = 2.4.0.RELEASE and = 2.3.0.M1 and = 2.4.0-M1 and = 2.5.0-M1 and
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.