You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "hudepin (GitHub)" <gi...@apache.org> on 2018/12/20 04:32:15 UTC

[GitHub] [incubator-dubbo-spring-boot-project] hudepin commented on issue #335: dubbo-spring-boot-sample-consumer 配置问题

1、java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet,Servlet dependency scope need set rumtime
2、when set Servlet api runtime ,cousumer and provider can start up sucess ,when I access test url :http://localhost:8080/sayHello?name=HelloWorld, then ocur some exception,
consumer exception log:
com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.alibaba.boot.dubbo.demo.consumer.DemoService:12345 in [com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.168.56.1:4358 --> provider: /192.168.56.1:12345, message:RpcInvocation [methodName=sayHello, parameterTypes=[class java.lang.String], arguments=[HelloWorld], attachments={path=com.alibaba.boot.dubbo.demo.consumer.DemoService, input=248, dubbo=2.0.2, interface=com.alibaba.boot.dubbo.demo.consumer.DemoService, version=0.0.0}]
	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:213)
provider exception log:
com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.alibaba.boot.dubbo.demo.consumer.DemoService:12345 in [com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.168.56.1:4358 --> provider: /192.168.56.1:12345, message:RpcInvocation [methodName=sayHello, parameterTypes=[class java.lang.String], arguments=null, attachments={path=com.alibaba.boot.dubbo.demo.consumer.DemoService, dubbo=2.0.2, interface=com.alibaba.boot.dubbo.demo.consumer.DemoService, version=0.0.0}]
	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:213) ~[dubbo-2.6.5.jar:2.6.5]

3,I doubt some code forget to commit to respository ? and My IDE is Ideal ,thx

[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/335 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org