java.lang.ClassNotFoundException: org.I0Itec.zkclient.exception.ZkNoNodeException 异常 如何处理
- 严重: Context initialization failed
- java.lang.NoClassDefFoundError: org/I0Itec/zkclient/exception/ZkNoNodeException
- at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistryFactory.createRegistry(ZookeeperRegistryFactory.java:37)
- at com.alibaba.dubbo.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:94)
- at com.alibaba.dubbo.registry.RegistryFactory$Adpative.getRegistry(RegistryFactory$Adpative.java)
- at com.alibaba.dubbo.registry.integration.RegistryProtocol.getRegistry(RegistryProtocol.java:190)
- at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:109)
- at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)
- at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)
- at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
- at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)
- at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)
- at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)
- at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)
- at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)
- at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
- at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
- at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
- at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
- at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
- at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
- at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1760)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
- at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
- at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
- at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
- at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
- at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
- at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
- at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)
- at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
- at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
- at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
- at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:606)
- at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
- at sun.rmi.transport.Transport$2.run(Transport.java:202)
- at sun.rmi.transport.Transport$2.run(Transport.java:199)
- at java.security.AccessController.doPrivileged(Native Method)
- at sun.rmi.transport.Transport.serviceCall(Transport.java:198)
- at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
- at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
- at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
- at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
- at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
- at java.security.AccessController.doPrivileged(Native Method)
- at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: java.lang.ClassNotFoundException: org.I0Itec.zkclient.exception.ZkNoNodeException
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
- ... 69 more
- 九月 19, 2016 4:53:39 下午 org.apache.catalina.core.StandardContext startInternal
- 严重: Error listenerStart
- 九月 19, 2016 4:53:39 下午 org.apache.catalina.core.StandardContext startInternal
- 严重: Context [] startup failed due to previous errors
- [2016-09-19 04:53:39,926] Artifact demo.provider:war exploded: Error during artifact deployment. See server log for details.
添加以下依赖即可:
<dependency> <groupId>com.github.sgroschupf</groupId> <artifactId>zkclient</artifactId> <version>0.1</version> </dependency>
联系方式