栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

jar包存在,但是打包的时候报找不到;起服务的时候tomcat已经起来了,但是随后又报了nacos的错误

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

jar包存在,但是打包的时候报找不到;起服务的时候tomcat已经起来了,但是随后又报了nacos的错误

打包问题:
Could not find artifact XXX.XX:XXXXXXXX:XX:2.1.5 in depick (http://XXX.XXX.XXX.XXX:XXXX/repository/maven-public/)
去本地仓库查看一下是否已经下载下来了jar,如果在该路径下确实是有包的,那就看下是不是同级目录下有个.pom.lastUpdated文件,如果有的话,去掉文件后缀.lastUpdate

重新加载,注释掉没用的报错的jar包,先保证打包成功
Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.0

Could not transfer artifact fr.opensagres.xdocreport:thirdparties-extension:pom:1.0.6 from/to depick (http://XXX.XXX.XXX.XXX:XXXX/repository/maven-public/): Transfer failed for http://XXX.XXX.XXX.XXX:XXXX/repository/maven-public/fr/opensagres/xdocreport/thirdparties-extension/1.0.6/thirdparties-extension-1.0.6.pom



起服务问题:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-11-02 17:52:23 967 [main] [TID: N/A] ERROR org.springframework.boot.SpringApplication:837 org.springframework.boot.SpringApplication - Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean ‘webServerStartStop’; nested exception is java.lang.reflect.UndeclaredThrowableException

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-11-02 18:37:14 420 [main] [TID: N/A] ERROR org.springframework.boot.SpringApplication:837 org.springframework.boot.SpringApplication - Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean ‘webServerStartStop’; nested exception is java.lang.reflect.UndeclaredThrowableException
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185)
at org.springframework.context.support.DefaultLifecycleProcessor.access 200 ( D e f a u l t L i f e c y c l e P r o c e s s o r . j a v a : 53 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . D e f a u l t L i f e c y c l e P r o c e s s o r 200(DefaultLifecycleProcessor.java:53) at org.springframework.context.support.DefaultLifecycleProcessor 200(DefaultLifecycleProcessor.java:53)atorg.springframework.context.support.DefaultLifecycleProcessorLifecycleGroup.start(DefaultLifecycleProcessor.java:360)
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at com.deepexi.inf.StartupApplication.main(StartupApplication.java:22)
Caused by: java.lang.reflect.UndeclaredThrowableException: null
at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:147)
at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:82)
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239)
at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:78)
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138)
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101)
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88)
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:46)
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182)
… 14 common frames omitted
Caused by: com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([localhost:8848]) tried: java.net.ConnectException: Connection refused: connect
at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:556)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:498)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:493)
at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:246)
at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:212)
at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:74)
… 27 common frames omitted
Disconnected from the target VM, address: ‘127.0.0.1:52040’, transport: ‘socket’
2021-11-02 18:39:41 071 [Thread-33] [TID: N/A] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder:108 com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Start destroying common HttpClient
2021-11-02 18:39:41 071 [Thread-39] [TID: N/A] WARN com.alibaba.nacos.common.notify.NotifyCenter:145 com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Start destroying Publisher
2021-11-02 18:39:41 071 [Thread-39] [TID: N/A] WARN com.alibaba.nacos.common.notify.NotifyCenter:162 com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Destruction of the end
2021-11-02 18:39:41 072 [Thread-33] [TID: N/A] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder:114 com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Destruction of the end

Process finished with exit code 130

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/397110.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号