nacos2.2.1启动报错:org.springframework.context.ApplicationContextException: Unable to start web server;等

@Corgi 2024-09-16 14:33:11 阅读 75

nacos2.2.1启动报错:org.springframework.context.ApplicationContextException: Unable to start web server;等

windows下启动 nacos 界面的报错日志如下:

解决方法一

解决方法二

windows下启动 nacos 界面的报错日志如下:

在这里插入图片描述

找到 nacos.log 日志文件去查看详细的启动日志,在最后几行发现这样的报错日志:

<code>Caused by: com.alibaba.nacos.api.exception.NacosException: java.net.UnknownHostException: jmenv.tbsite.net

at com.alibaba.nacos.core.cluster.lookup.AddressServerMemberLookup.run(AddressServerMemberLookup.java:152)

at com.alibaba.nacos.core.cluster.lookup.AddressServerMemberLookup.doStart(AddressServerMemberLookup.java:100)

at com.alibaba.nacos.core.cluster.AbstractMemberLookup.start(AbstractMemberLookup.java:55)

at com.alibaba.nacos.core.cluster.ServerMemberManager.initAndStartLookup(ServerMemberManager.java:224)

at com.alibaba.nacos.core.cluster.ServerMemberManager.init(ServerMemberManager.java:171)

at com.alibaba.nacos.core.cluster.ServerMemberManager.<init>(ServerMemberManager.java:152)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)

... 115 common frames omitted

Caused by: java.net.UnknownHostException: jmenv.tbsite.net

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:196)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)

at java.net.Socket.connect(Socket.java:606)

at sun.net.NetworkClient.doConnect(NetworkClient.java:175)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:499)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:594)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:278)

at sun.net.www.http.HttpClient.New(HttpClient.java:375)

at sun.net.www.http.HttpClient.New(HttpClient.java:393)

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1240)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1167)

at sun.net.www.protocol.http.HttpURLConnection.pl



声明

本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。