严重: Exception sending context initialized event to listener instance of class org.springframework.we...

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。

转载于:https://www.cnblogs.com/wangshichang/p/11352318.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值