dubbo

把所有公用的jar放入tomcat的lib出现很多问题


1:生成者的jar放入tomcat的lib,消费者没放入

Failed to invoke the method invoker in the service org.agile.apipl.rpc.RpcSoaManager. Tried 3 times of the providers [10.XX.21:20881] (1/1) from the registry 10.XX.25:2181 on the consumer 10.88.6.247 using the dubbo version 2.8.4. Last error is: Invoke remote method timeout. method: invoker, provider: dubbo://10.XX.21:20881/org.agile.apipl.rpc.RpcSoaManager?anyhost=true&application=agile-api-consumer&check=false&dubbo=2.8.4&generic=false&group=account&interface=org.agile.apipl.rpc.RpcSoaManager&methods=singleInvoker,asyncInvoker,invoker&organization=dubbox&owner=programmer&pid=7320&revision=apipl&serialization=kryo&side=consumer&timestamp=1445568766111, cause: Waiting server-side response timeout. start time: 2015-10-23 10:52:53.078, end time: 2015-10-23 10:52:54.079, client elapsed: 0 ms, server elapsed: 1001 ms, timeout: 1000 ms, request: Request [id=2, version=2.0.0, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=invoker, parameterTypes=[class org.agile.apipl.common.context.RainbowContext], arguments=[org.agile.apipl.common.context.RainbowContext@48c36436], attachments={path=org.agile.apipl.rpc.RpcSoaManager, interface=org.agile.apipl.rpc.RpcSoaManager, group=account, version=0.0.0}]], channel: /XXXX:56318 -> /10.XX.21:20881


2:生成者和消费者的jar都放入tomcat的lib

Error creating bean with name 'accountRpc': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: interface org.agile.apipl.rpc.RpcSoaManager is not visible from class loader


解决方法:dubbo-2.8.4.jar别放入tomcat的lib还是在应用的WEB-INF\lib

阅读更多
换一批

没有更多推荐了,返回首页