ShardingSphere-Proxy 5.0.0启动报错"ClassNotFoundException: org.apache.shardingsphere.mode.repository.cluster.ClusterPersistRepository"

操作系统:window10

ShardingSphere-Proxy版本:apache-shardingsphere-5.0.0-shardingsphere-proxy-bin.tar.gz

下载地址:https://dlcdn.apache.org/shardingsphere/5.0.0/apache-shardingsphere-5.0.0-shardingsphere-proxy-bin.tar.gz

现象:

配置好conf中的config-sharding.yaml和server.yaml文件后,在cmd窗口 启动start.bat 报错:"ClassNotFoundException: org.apache.shardingsphere.mode.repository.cluster.ClusterPersistRepository"

报错截图:

 

 

排查后发现,从官网上下载的ShardingSphere-Proxy为tar.gz格式,且依赖包的包名很长,在Windows环境进行解压后,包名太长的部分jar包不能正常解压,导致ClassNotFound问题

 

 

解决方案:在Linux环境中进行解压,或者在windows寻找其他解压工具,只能要正常解压依赖包,则不会出现该问题

posted on 2022-02-23 20:08  H曾雨  阅读(657)  评论(0编辑  收藏  举报

导航