优秀如你,代码世界因你绽放光彩!!!

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creat

1 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
2 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brandServiceImpl' defined in file [E:\idea\pinyougou\service+sellergoods\target\service+sellergoods\WEB-INF\classes\com\wsc\core\service\impl\BrandServiceImpl.class]: Initialization of bean failed; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000

1..以上分布式创建工程运行时,tomcat运行报错不能启动:Error creating bean with name 'brandServiceImpl'.

2..分析:以上报错大致问题是:zookeeper注册中心,没有接收到提供者提供的方法,仅存在消费者。

3..解决对策:

我用的是:zookeeper文件在Linux系统中,那么需要重新启动VMware虚拟机,重新开启zookeeper的 命令行:

运行结束:
./zkServer.sh sop
运行开启:
./zkServer.sh start
查看状态:
./zkServer.sh status

4...然后重新连接tomcat,OK!!!

失败:继续往下看:

5...还是不能启动tomcat的话,那么就是VMware网问题了

6...打开 VMware-----》编辑------》虚拟网络编辑器 -------》

DHCP设置(p)  重新设置网络  子网ip:192.168.200.0    或      还原默认设置(R)

设置子网ip:192.168.200.0    

然后 ------》  应用----------》确定--------》等待网络配置成功------------》重复以上开启动作---------》开启虚拟机-----》OK。

posted @ 2019-08-14 15:36  Hi~Hi  阅读(567)  评论(0编辑  收藏  举报
学习不分先后,知识不分多少;事无巨细,当以虚心求教;三人行,必有我师焉!!!wished for you successed !!!