Nacos windows启动报错 Unable to start embedded Tomcat

是赵敢敢啊 2020-12-05 10:24:54
使用的的jdk是 java version 1.8.0_202-ea
Nacos的版本从1.1.2 到1.4.0都是报这个错
数据库也创建了,配置文件也该了,除了换jdk的版本没有别的解决方案了吗?
```java
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:156)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
at com.alibaba.nacos.Nacos.main(Nacos.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:124)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:86)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:416)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:180)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)
... 16 common frames omitted
Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[/nacos] failed to start
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.rethrowDeferredStartupExceptions(TomcatWebServer.java:169)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:108)
... 21 common frames omitted
```
...全文
12120 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_56977912 2021-09-10
  • 打赏
  • 举报
回复

题主题主,这个问题是怎么解决的呀

是赵敢敢啊 2021-09-10
  • 举报
回复
@weixin_56977912 我更换了我的本地jdk版本
是赵敢敢啊 2021-09-10
  • 举报
回复
@是赵敢敢啊 jdk 1.8.0_191
weixin_56977912 2021-09-10
  • 打赏
  • 举报
回复

题主,我也出现这个问题了,请问你是怎么解决的呀

是赵敢敢啊 2021-09-10
  • 举报
回复
@weixin_56977912 把本地jdk更换成 1.8.0_191
勿忘初芯 2021-01-26
  • 打赏
  • 举报
回复 3
startup.cmd -m standalone不是以非集群模式就好了
晰中 2021-07-01
  • 举报
回复
@勿忘初芯 这个可以
安禎 2020-12-19
  • 打赏
  • 举报
回复
换的jdk 什么版本的
是赵敢敢啊 2020-12-07
  • 打赏
  • 举报
回复
引用 1 楼 KeepSayingNo的回复:
按照这个来做,肯定一步搞定 https://blog.csdn.net/dotnetstudio/article/details/107962473
换了JDK版本了已经
KeepSayingNo 2020-12-07
  • 打赏
  • 举报
回复
按照这个来做,肯定一步搞定 https://blog.csdn.net/dotnetstudio/article/details/107962473

51,408

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧