-
Notifications
You must be signed in to change notification settings - Fork 26.5k
tomcat9 is Incompatible with dubbo 2.7 #5711
Copy link
Copy link
Closed
Milestone
Description
Environment
- Dubbo version: 2.7.*
- Operating System version: xxx
- Java version: 8
- springboot: 2.2.4
Steps to reproduce this issue
- I want to use dubbo with springboot
- Need two protocol - rest and dubbo
- Rest server is tomcat, and I use tomcat9 in my project
Exception
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.apache.dubbo.remoting.http.tomcat.TomcatHttpServer.<init>(TomcatHttpServer.java:66)
The following method did not exist:
org.apache.catalina.connector.Connector.setProtocol(Ljava/lang/String;)V
The method's class, org.apache.catalina.connector.Connector, is available from the following locations:
jar:file:/Users/leeco/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.30/tomcat-embed-core-9.0.30.jar!/org/apache/catalina/connector/Connector.class
It was loaded from the following location:
file:/Users/leeco/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.30/tomcat-embed-core-9.0.30.jar
What`s wrong
The code is "tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.