Skip to content

Rest Protocol can't work when use Tomcat 8.0.x as web container for Dubbo 2.7.7 #6399

@yiocio

Description

@yiocio
  • 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.7.7
  • Operating System version: Window 64x
  • Java version: 1.8
  • Tomcat version: 8.0.11

Steps to reproduce this issue

  1. enable Rest Protocol using <dubbo:protocol name="rest" server="tomcat">, the point is using tomcat as WebContainer;
  2. annotate one service's implementation class with @DubboService(protocol = "rest");
  3. start dubbo container and send one http request to it;

Expected Result

I should get http response by PostMan.

Actual Result

PostMan said : the connection is refused。It seems that the Application never listen on the given port .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions