首页 > 代码库 > zookeeper_service 出错 java.lang.NoClassDefFoundError: org/I0Itec/zkclient/exception/ZkNoNodeException

zookeeper_service 出错 java.lang.NoClassDefFoundError: org/I0Itec/zkclient/exception/ZkNoNodeException

2016-12-18 08:28:07 ContextLoader:358 ERROR - Context initialization failed
java.lang.NoClassDefFoundError: org/I0Itec/zkclient/exception/ZkNoNodeException

 

 

解决:

在pom.xml加入

<dependency>

<groupId>com.101tec</groupId>

<artifactId>zkclient</artifactId>
<version>0.10</version>
</dependency>

 

zookeeper_service 出错 java.lang.NoClassDefFoundError: org/I0Itec/zkclient/exception/ZkNoNodeException