dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Unsupported protocol http in notified url

Open chengxj opened this issue 7 years ago • 4 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.
  • [ ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.6.7
  • Operating System version: windows7
  • Java version: 1.7.0_79

Steps to reproduce this issue

  1. provider <dubbo:service version="1.0.0" group="dubbo" protocol="http" interface="dubbo.api.ApiService" ref="apiService"/>
  2. consumer <dubbo:reference id="apiService" version="1.0.0" group="dubbo" protocol="http" check="false" interface="dubbo.api.ApiService"/> 3.log com.alibaba.dubbo.registry.integration.RegistryDirectory: Unsupported protocol http in notified url:

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps?

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

chengxj avatar Oct 30 '19 07:10 chengxj

HTTP dependencies are not added

it-zhouyu avatar Oct 31 '19 06:10 it-zhouyu

HTTP dependencies are not added

你具体指的是什么依赖?

chengxj avatar Oct 31 '19 07:10 chengxj

HTTP dependencies are not added 谢谢,的确是因为缺少HTTP相关的JAR引发的。我已经调试好了。

chengxj avatar Oct 31 '19 10:10 chengxj

构建dubbo-2.6.7项目时,使用http协议通信出现报错Unsupported protocol http in notified url,是因为在项目中少引了

<dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>dubbo-rpc-http</artifactId>
</dependency>
<dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
</dependency>

chengxj avatar Oct 31 '19 10:10 chengxj