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   H曾雨  阅读(736)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示