千家信息网

spring cloud eureka服务启动失败怎么解决

发表于:2025-01-31 作者:千家信息网编辑
千家信息网最后更新 2025年01月31日,本篇内容介绍了"spring cloud eureka服务启动失败怎么解决"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细
千家信息网最后更新 2025年01月31日spring cloud eureka服务启动失败怎么解决

本篇内容介绍了"spring cloud eureka服务启动失败怎么解决"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

环境:

 2.3.5.RELEASE  Hoxton.SR8

错误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:56:29.508 ERROR 18232 --- [ main] o.s.boot.SpringApplication : Application run failed

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

原因:spring cloud版本有问题,更换为一下版本即可

Hoxton.SR12

Spring 官方对应版本地址: (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",            "3.5.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1",            "3.14.0": "Spring Boot >=2.5.0.M1 and <2.7.0-M1"        },        "codecentric-spring-boot-admin": {            "2.4.3": "Spring Boot >=2.3.0.M1 and <2.5.0-M1",            "2.5.5": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",            "2.6.2": "Spring Boot >=2.6.0.M1 and <2.7.0-M1"        },        "solace-spring-boot": {            "1.1.0": "Spring Boot >=2.3.0.M1 and <2.6.0-M1"        },        "solace-spring-cloud": {            "1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "2.1.0": "Spring Boot >=2.4.0.M1 and <2.6.0-M1"        },        "spring-cloud": {            "Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1",            "2020.0.5": "Spring Boot >=2.4.0.M1 and <2.6.0-M1",            "2021.0.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-M3",            "2021.0.0-M3": "Spring Boot >=2.6.0-M3 and <2.6.0-RC1",            "2021.0.0-RC1": "Spring Boot >=2.6.0-RC1 and <2.6.1",            "2021.0.1": "Spring Boot >=2.6.1 and <2.6.5-SNAPSHOT",            "2021.0.2-SNAPSHOT": "Spring Boot >=2.6.5-SNAPSHOT and <3.0.0-M1",            "2022.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"        },        "spring-cloud-gcp": {            "2.0.8": "Spring Boot >=2.4.0-M1 and <2.6.0-M1",            "3.1.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"        },        "spring-cloud-services": {            "2.3.0.RELEASE": "Spring Boot >=2.3.0.RELEASE and <2.4.0-M1",            "2.4.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "3.3.0": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",            "3.4.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"        },        "spring-geode": {            "1.3.12.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "1.4.13": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "1.5.10": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",            "1.6.4": "Spring Boot >=2.6.0-M1 and <2.7.0-M1",            "1.7.0-M2": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",            "2.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"        },        "vaadin": {            "14.8.5": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1",            "23.0.1": "Spring Boot >=2.6.0-M1 and <2.8.0-M1"        },        "wavefront": {            "2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1",            "2.1.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "2.2.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1"        }    },    "dependency-ranges": {        "native": {            "0.9.0": "Spring Boot >=2.4.3 and <2.4.4",            "0.9.1": "Spring Boot >=2.4.4 and <2.4.5",            "0.9.2": "Spring Boot >=2.4.5 and <2.5.0-M1",            "0.10.0": "Spring Boot >=2.5.0-M1 and <2.5.2",            "0.10.1": "Spring Boot >=2.5.2 and <2.5.3",            "0.10.2": "Spring Boot >=2.5.3 and <2.5.4",            "0.10.3": "Spring Boot >=2.5.4 and <2.5.5",            "0.10.4": "Spring Boot >=2.5.5 and <2.5.6",            "0.10.5": "Spring Boot >=2.5.6 and <2.5.9",            "0.10.6": "Spring Boot >=2.5.9 and <2.6.0-M1",            "0.11.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-RC1",            "0.11.0-M2": "Spring Boot >=2.6.0-RC1 and <2.6.0",            "0.11.0-RC1": "Spring Boot >=2.6.0 and <2.6.1",            "0.11.0": "Spring Boot >=2.6.1 and <2.6.2",            "0.11.1": "Spring Boot >=2.6.2 and <2.6.3",            "0.11.2": "Spring Boot >=2.6.3 and <2.6.4",            "0.11.3": "Spring Boot >=2.6.4 and <2.6.5-SNAPSHOT",            "0.11.4-SNAPSHOT": "Spring Boot >=2.6.5-SNAPSHOT and <2.7.0-M1"        },        "okta": {            "1.4.0": "Spring Boot >=2.2.0.RELEASE and <2.4.0-M1",            "1.5.1": "Spring Boot >=2.4.0-M1 and <2.4.1",            "2.0.1": "Spring Boot >=2.4.1 and <2.5.0-M1",            "2.1.5": "Spring Boot >=2.5.0-M1 and <2.7.0-M1"        },        "mybatis": {            "2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1",            "2.2.2": "Spring Boot >=2.5.0-M1"        },        "camel": {            "3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "3.10.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1",            "3.13.0": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",            "3.15.0": "Spring Boot >=2.6.0.M1 and <2.7.0-M1"        },        "picocli": {            "4.6.3": "Spring Boot >=2.4.0.RELEASE and <3.0.0-M1"        },        "open-service-broker": {            "3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "3.3.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "3.4.0-M2": "Spring Boot >=2.5.0-M1 and <2.6.0-M1"        }    }}

"spring cloud eureka服务启动失败怎么解决"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!

版本 服务 内容 更多 知识 实用 学有所成 接下来 原因 困境 地址 官方 实际 情况 文章 案例 环境 编带 网站 行业 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 华为信息网络技术研究院 洋务运动思维导图软件开发 电脑应用专业和网络技术哪个好 济南 思科网络安全考试认证 科技互联网与信息化大会 质谱分子网络技术优缺点 pps服务器未响应 星环科技数据库研发薪资 房产信息网络安全的重要性 头条数据库面试需要几轮 U8数据库结构没有升级 北京特种网络技术服务资费 可以赚钱的流量服务器 易读小说软件开发 软件开发是大专文凭吗 软件开发游戏程序 政府可以监管企业服务器吗 武汉移动网络技术岗位 网页服务器开不好怎么办 戴尔r410服务器怎么变成电脑 松江区网络技术服务咨询热线 六年级网络安全画 华润集团网络安全 大专计算机网络技术课本 互联网络安全系列课堂心得体会 命令行查看数据库的大小 钓鱼攻击属于哪类网络安全事件 软件开发技术文档管理 c 连接数据库字符串 服务器密钥过期
0