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。

  • 相关阅读:
    InnoSetup 打包代码 检测.netFramework
    PartialView中的页面重定向
    Cocos2dx 学习之引擎介绍
    30个高质量的免费jquery滑块PSD文件
    HBase Shell
    图灵百年诞辰 1912.6.232012.6.23
    常用的数据分页技术及比较
    Cocos2dx学习之windows 7的visual studo 2010开发环境安装
    C#实现简易ajax调用后台方法
    AJAX(Professional ASP.NET MVC 3
  • 原文地址:https://www.cnblogs.com/wangshichang/p/11352318.html
Copyright © 2011-2022 走看看