Dubbo 启动报java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy

博客主要讲述了在启动Dubbo时遇到的`java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy`错误。问题在于缺少Curator的相关依赖,解决方案是在pom.xml中添加Curator的jar包,并确保更新pom文件。此外,还提到了一个ID错误,错误代码表明需要修正子模块中的XML配置文件。
摘要由CSDN通过智能技术生成

1.## Dubbo 启动报java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy

2. Failed to subscribe consumer://169.254.152.105/

1.Dubbo 启动报错

错误信息

"C:\Program Files\Java\jdk1.8.0_74\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\app\IDEAIU\IntelliJ IDEA 2020.1\lib\idea_rt.jar=2566:D:\app\IDEAIU\IntelliJ IDEA 2020.1\bin" -Dfile.encoding=UTF-8 -classpath "D:\app\IDEAIU\IntelliJ IDEA 2020.1\lib\idea_rt.jar;D:\app\IDEAIU\IntelliJ IDEA 2020.1\plugins\junit\lib\junit5-rt.jar;D:\app\IDEAIU\IntelliJ IDEA 2020.1\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_74\jre\lib\rt.jar;F:\CrProject\project.txt\Day60Dubbo\DubboProvider\target\test-classes;F:\CrProject\project.txt\Day60Dubbo\DubboProvider\target\classes;F:\CrProject\project.txt\Day60Dubbo\DubboInterface\target\classes;D:\app\mevan\Repository\junit\junit\4.12\junit-4.12.jar;D:\app\mevan\Repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\app\mevan\Repository\org\apache\dubbo\dubbo\2.7.5\dubbo-2.7.5.jar;D:\app\mevan\Repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\app\mevan\Repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\app\mevan\Repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\app\mevan\Repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\app\mevan\Repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\app\mevan\Repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\app\mevan\Repository\com\alibaba\spring\spring-context-support\1.0.5\spring-context-support-1.0.5.jar;D:\app\mevan\Repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\app\mevan\Repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar;D:\app\mevan\Repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\app\mevan\Repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\app\mevan\Repository\org\apache\zookeeper\zookeeper\3.4.6\zookeeper-3.4.6.jar;D:\app\mevan\Repository\org\slf4j\slf4j-api\1.6.1\slf4j-api-1.6.1.jar;D:\app\mevan\Repository\org\slf4j\slf4j-log4j12\1.6.1\slf4j-log4j12-1.6.1.jar;D:\app\mevan\Repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\app\mevan\Repository\jline\jline\0.9.94\jline-0.9.94.jar;D:\app\mevan\Repository\io\netty\netty\3.7.0.Final\netty-3.7.0.Final.jar;D:\app\mevan\Repository\com\101tec\zkclient\0.7\zkclient-0.7.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.qfdeu.dubbo.TestProvider,testProvider
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy

	at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26)
	at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:68)
	at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.<init>(ZookeeperDynamicConfiguration.java:70)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:37)
	at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值