运维开发网

服务启动失败的原因分析及解决方案

运维开发网 https://www.qedev.com 2022-07-01 21:24 出处:网络
这篇文章主要介绍了spring?cloud?eureka?服务启动失败的原因解析,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

这篇文章主要介绍了spring?cloud?eureka?服务启动失败的原因解析,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下


环境: lt;spring-boot-versiongt;2.3.5.RELEASElt;/spring-boot-versiongt; lt;spring-cloud-versiongt;Hoxton.SR8lt;/spring-cloud-versiongt;


错误log

无法启动web服务器;嵌套异常是org . spring framework . boot . web . server . web server异常:无法启动嵌入式Tomcat

启动应用程序上下文时出错。要显示条件报告,请使用# 39;重新运行您的应用程序。调试# 39;已启用。
2022-03-15 21:56:29.508错误18232-[main]OS . boot . spring应用程序:应用程序运行失败

org . spring framework . context . applicationcontextexception:无法启动web服务器;嵌套异常为org . spring framework . boot . web . server . web server exception:无法在org . spring framework . boot . web . servlet . context . servletwebserverapplicationcontext . onrefresh(servletwebserverapplicationcontext . Java:161)~[spring-boot-2 . 3 . 5 . release . jar:2 . 3 . 5 . release]
在org . spring framework . context . support . abstractapplicationcontext . refresh(abstractapplicationcontext . Java:545)~[在initgt(TomcatWebServer.java:104)~[spring-boot-2 . 3 . 5 . release . jar:2 . 3 . 5 . release]
at org . spring framework . boot . web . embedded . Tomcat . tomcatservletwebserverfactory . gettomcatwebserver(tomcatservletwebserverfactory . Java:440)~[spring-boot-2 . 3 . 5 . release . jar:2 . 3 . 5 . release]
at org . spring framework . boot . web . embedded . Tomcat . tomcatservletwebserverfactory...9常见框架省略
原因:Java . lang . illegalstateexception:standard engine[Tomcat]。标准主机[本地主机]。TomcatEmbeddedContext[]无法在org . spring framework . boot . web . embedded . Tomcat . tomcatwebserver . rethrowdeferredstartupexceptions(tomcatwebserver . Java:187)~[spring-boot-2 . 3 . 5 . release . jar:2 . 3 . 5 . release]
在org . spring framework . boot . web . embedded . Tomcat . tomcatwebserver . initialize(tomcatwebserver . Java:126)~[spring-boot-2...省略了14个公共框架

原因:春云版本有问题,换成以下版本即可。

lt;spring-cloud-versiongt;Hoxton.SR12lt;/spring-cloud-versiongt;

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

关于Springcloudureka服务启动失败的这篇文章到此为止。关于Springcloudureka启动失败的更多信息

0

精彩评论

暂无评论...
验证码 换一张
取 消