zoukankan      html  css  js  c++  java
  • 严重: 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:ideapinyougouservice+sellergoods	argetservice+sellergoodsWEB-INFclassescomwsccoreserviceimplBrandServiceImpl.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。

  • 相关阅读:
    如何使用go module导入本地包
    gin-vue-admin 03 项目打包上线
    golang map转xml
    vim简明文档
    goframe gf-cli的使用
    supervisor 的安装与使用
    element Tree 树形控件
    gin-vue-admin开发教程 02 了解项目目录结构和代码执行的流程
    gin-vue-admin开发教程 01安装与启用
    oraclesql遇见的问题(一)
  • 原文地址:https://www.cnblogs.com/wangshichang/p/11352318.html
Copyright © 2011-2022 走看看