Skip to content

Cannot enable Servlet access in Spring Boot 2.7.18+Dubbo 3.3.6+JDK 8 environment #3200

@tocky515

Description

@tocky515

The development environment is Spring Boot 2.7.18+Dubbo 3.3.6+JDK 8, and the IDE tool is Vs Code1.107.1. Follow the instructions in the link: https://github.com/apache/dubbo-samples/tree/master/2-advanced/dubbo-samples-triple-servlet#how-to-enable-servlet-support-for-triple, to enable Servlet access mode, reuse the existing Servlet listening port of Spring Boot to access HTTP traffic without Netty listening to the new port. When starting, an error message is reported stating that the port is already occupied, as shown below.How can I solve this problem.

java.lang.RuntimeException: java.lang.RuntimeException: org.apache.dubbo.remoting.RemotingException: Failed to bind NettyPortUnificationServer on /0.0.0.0:6060, cause: Address already in use: bind

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions