qq_爵_0
2019-04-08 22:21
实现DubboItemService后,第一次启动,报错说不存在
javassist.ClassPool
搜索后说缺少依赖:
<dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>3.20.0-GA</version> </dependency>
遂加进去,启动又报错:
Error creating bean with name 'dubboItemInfoService' defined in file (这里省略类路劲) : Initialization of bean failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.206.1:20903/com.debug.mooc.dubbo.one.api.service.IDubboItemInfoService? anyhost=true&application=dubboOne-provider&channel.readonly.sent=true&codec=dubbo&dubbo=2.8.4&generic=false& heartbeat=60000&interface=com.debug.mooc.dubbo.one.api.service.IDubboItemInfoService&loadbalance= roundrobin&methods=listItems&owner=debug&pid=4512&revision=1.0&side=provider&timeout=3000& timestamp=1554732837860&validation=true&version=1.0) Failed to bind NettyServer on /192.168.206.1:20903, cause: org/jboss/netty/logging/InternalLoggerFactory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:553)
我一查IP,发现我的IP不是192.168.206.1。我在本机装了VMWare虚拟机,但我并没有启动他们,像下图一样:
个人问题,缺少一系列jar包,以及版本问题,下了源码,对比一下,再试了下,就好了
2小时实战Apache顶级项目-RPC框架Dubbo分布式服务调度
20338 学习 · 145 问题
相似问题