zookeeper:java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/ConnectRequest

springboot +dubbo+zookeeper,但在服务消费方启动项目报一下错误:

2020-06-08 22:54:58.268  INFO 19800 --- [           main] org.apache.zookeeper.ClientCnxn          : zookeeper.request.timeout value is 0. feature enabled=false
2020-06-08 22:54:58.280  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server 192.168.245.128/192.168.245.128:2181.
2020-06-08 22:54:58.280  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : SASL config status: Will not attempt to authenticate using SASL (unknown error)
2020-06-08 22:54:58.285  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Socket connection established, initiating session, client: /192.168.245.1:54394, server: 192.168.245.128/192.168.245.128:2181
2020-06-08 22:54:58.301  WARN 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Session 0x0 for sever 192.168.245.128/192.168.245.128:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.

java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/ConnectRequest
    at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:992) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:345) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1262) ~[zookeeper-3.6.1.jar:3.6.1]
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.proto.ConnectRequest
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_121]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_121]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121]
    ... 3 common frames omitted

2020-06-08 22:54:58.316  INFO 19800 --- [           main] c.a.d.r.zookeeper.ZookeeperRegistry      :  [DUBBO] Register: consumer://172.17.190.241/com.wsf.springbootdubboconsumer.seivice.MessageHandlerService?application=dubbo-consumer&category=consumers&check=false&default.timeout=16000&dubbo=2.6.2&interface=com.wsf.springbootdubboconsumer.seivice.MessageHandlerService&methods=sentMessage&pid=19800&side=consumer&timestamp=1591628098134, dubbo version: 2.6.2, current host: 172.17.190.241
2020-06-08 22:54:59.784  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server 192.168.245.128/192.168.245.128:2181.
2020-06-08 22:54:59.784  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : SASL config status: Will not attempt to authenticate using SASL (unknown error)
2020-06-08 22:54:59.785  INFO 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Socket connection established, initiating session, client: /192.168.245.1:54395, server: 192.168.245.128/192.168.245.128:2181
2020-06-08 22:54:59.785  WARN 19800 --- [8.245.128:2181)] org.apache.zookeeper.ClientCnxn          : Session 0x0 for sever 192.168.245.128/192.168.245.128:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.

java.lang.NoClassDefFoundError: org/apache/zookeeper/proto/ConnectRequest
    at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:992) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:345) ~[zookeeper-3.6.1.jar:3.6.1]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1262) ~[zookeeper-3.6.1.jar:3.6.1]
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问