2016-11-30 09:21:02 643 ERROR - ContextLoader.initWebApplicationContext(331) | Context initialization failed com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.50.12:31581/com.able.livecourse.rmi.service.LiveCourseRmiService?anyhost=true&application=livecourse&channel.readonly.sent=true&codec=dubbo&default.delay=-1&default.retries=0&default.timeout=10000&delay=-1&dubbo=2.5.3&heartbeat=60000&interface=com.able.livecourse.rmi.service.LiveCourseRmiService&methods=searchCourseLivingToApp,signOutVirtualCourseUser,insertVirtualCourse,findVirtualStartUrlBycourseId,updateLiveCourse,insertLiveSatisfact,findUserSatisfactByIds,canWatchLiveCourse,deleteLiveCourseByCourseId,updateVirtualCourse,searchCourseList,deleteVirtualCourse,zhsLoginCheck,joinVirtualCourseRecordUser,insertLiveCourse,searchHistoryLiveList&monitor=dubbo%3A%2F%2Fzookeeper1.ablejava.com%3A2181%2Fcom.alibaba.dubbo.registry.RegistryService%3Fapplication%3Dlivecourse%26backup%3Dzookeeper2.ablejava.com%3A2181%2Czookeeper3.ablejava.com%3A2181%26dubbo%3D2.5.3%26pid%3D4504%26protocol%3Dregistry%26refer%3Ddubbo%253D2.5.3%2526interface%253Dcom.alibaba.dubbo.monitor.MonitorService%2526pid%253D4504%2526timestamp%253D1480468862625%26registry%3Dzookeeper%26timestamp%3D1480468862610&pid=4504&revision=pc&side=provider&timeout=10000×tamp=1480468862611&version=pc) Failed to bind NettyServer on /192.168.50.12:31581, cause: Failed to bind to: /0.0.0.0:31581 at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:289) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55) at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java) at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153) at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107) 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.invokeListener(SimpleApplicationEventMulticaster.java:151) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:773) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.50.12:31581, cause: Failed to bind to: /0.0.0.0:31581
windows:
查看端口占用(获得进程ID)
netstat -aon|findstr "31581"
查看任务端口(获得进程名称)
tasklist|findstr "4504"
结束任务
taskkill /f /t /im javaw.exe
linux:
netstat -tunlp|grep 18191
ps -ef|grep 23049
kill -9 tomcat
通过启动前,查看windows端口,未发现被占用,启动后占用,确定问题为spring context 初始化两次导致dubbo端口被占用。
解决方式:修改server.xml 如下
<Host name="localhost" debug="0" appBase="/data/www/ROOT/xxx"
unpackWARs="true" autoDeploy="false" deployOnStartup="false"
xmlValidation="false" xmlNamespaceAware="false" >
<Context path="" docBase="xxxxx" debug="0" reloadable="false"/>
</Host>
参考页面:http://blog.csdn.net/jingyulanye/article/details/51451416
相关推荐
最新版的dubbo admin 2.7 兼容 2.6 dubbo-admin是一个dubbo的后台管理与监控平台。可以提供服务查询,服务治理,条件路由,黑白名单,负载均衡等功能操作,十分方便。 使用方法: 首先使用解压工具打开jar包,在...
targetNamespace="http://code.alibabatech.com/schema/dubbo"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace"/> <xsd:import namespace="http://www.springframework.org/schema/beans"/> ...
解决启动dubbo项目的时候出现,无法读取方案文档 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd',其实在你本地把dubbo.jar文件解压,然后在META-INF下边就有个dubbo.xsd,就是他
构建dubbo项目的时候会遇到: 操作步骤: http://blog.csdn.net/gjldwz/article/details/50555922 Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no ...
dubbo找不到dubbo.xsd报错, cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document...
dubbo-doc-static 是 Dubbo 的文档镜像。 http://code.alibabatech.com/wiki/display/dubbo的拷贝。 HTML文件在分支gh-pages上,打包下载ZIP包。 关键的文档的链接: 用户指南: ...
基于分布式事务seata+分库分表shardingspherejdbc+nacos+dubbo项目源码.zip 1. 环境准备 - nacos: `sh ./docker/nacos/startup.sh` - seata-server - 导入配置: `sh ./docker/seata-server/conf/nacos-config.sh ...
【标题】"jdk1.8可用的dubbo-admin-2.5.4.rar" 提供的是Dubbo管理控制台的一个版本,适用于Java 1.8环境。Dubbo是一款高性能、轻量级的服务治理框架,由阿里巴巴开源,它专注于服务治理,帮助开发者在分布式环境中...
Spring Boot + Nacos + Dubbo + Dubbo Admin,详见:https://blog.csdn.net/z1353095373/article/details/121704570
Eclipse dubbo Multiple annotations found at this line: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for ...
本项目示例基于spring boot 最新版本(2.1.9)实现,Spring Boot、Spring Cloud 学习示例,将持续更新…… 在基于Spring Boot、Spring Cloud 分布微服务开发过程中,根据实际项目环境,需要选择、集成符合项目...
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:190) at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:110) at ...
Dubbo 是一款高性能、轻量级的开源Java RPC框架,由阿里巴巴公司开发并维护,它主要解决了企业服务治理的问题,提供了服务注册、服务发现、负载均衡、调用链跟踪等核心功能。在分布式系统中,Dubbo扮演着关键角色,...
### Spring Boot集成Dubbo服务详解 #### 一、前言 在微服务架构体系中,分布式服务框架扮演着至关重要的角色。Apache Dubbo作为一款高性能、轻量级的开源微服务框架,在Java生态中有着广泛的应用。本文将详细介绍...
dubbo配置xml文件报错“Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - ...
在Java企业级开发中,Dubbo是一个非常流行的高性能、轻量级的服务治理框架,它由阿里巴巴开源并维护。本文将详细解析"标题"和"描述"中提到的"Dubbo.xsd"文件及其在解决Dubbo标签识别问题中的作用。 首先,我们需要...
如果使用dubbo遇到错误:com.alibaba.dubbo.remoting.RemotingException: Fail to decode request due to: RpcInvocation 请下载这个jar,替换掉你项目中的那个jar,应该可以解决。
《Spring与Dubbo实战解析》 在现代企业级应用开发中,Spring框架因其强大的功能和易用性,已经成为Java领域的主流框架。而Dubbo作为一款高性能、轻量级的开源服务治理框架,常用于实现微服务间的通信。本文将深入...
<dubbo:protocol name="dubbo" port="20880" /> <bean id="demoService" class="com.alibaba.dubbo.demo.provider.DemoServiceImpl" /> <dubbo:service interface=...