sofastack-guides / sofa-ark-spring-guides

sofa-ark-spring-guides
15 stars 19 forks source link

tomcat-embed-core存在冲突,但是org.apache.coyote.http11.AbstractHttp11Protocol 在tomcat 9 中就已经不存在了 #25

Closed WangSQ1017 closed 1 year ago

WangSQ1017 commented 1 year ago

APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.lambda$customizeRejectIllegalHeader$24(TomcatWebServerFactoryCustomizer.java:209)

The following method did not exist:

org.apache.coyote.http11.AbstractHttp11Protocol.setRejectIllegalHeader(Z)V

The calling method's class, org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer, was loaded from the following location:

jar:file:/D:/maven/repository/org/springframework/boot/spring-boot-autoconfigure/2.6.6/spring-boot-autoconfigure-2.6.6.jar!/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.class

The called method's class, org.apache.coyote.http11.AbstractHttp11Protocol, is available from the following locations:

jar:file:/D:/maven/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.60/tomcat-embed-core-9.0.60.jar!/org/apache/coyote/http11/AbstractHttp11Protocol.class

The called method's class hierarchy was loaded from the following locations:

org.apache.coyote.http11.AbstractHttp11Protocol: jar:file:/D:/maven/repository/com/alipay/sofa/web-ark-plugin/2.0.6/web-ark-plugin-2.0.6.jar!/lib/tomcat-embed-core-9.0.12.jar!/
org.apache.coyote.AbstractProtocol: jar:file:/D:/maven/repository/com/alipay/sofa/web-ark-plugin/2.0.6/web-ark-plugin-2.0.6.jar!/lib/tomcat-embed-core-9.0.12.jar!/

Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer and org.apache.coyote.http11.AbstractHttp11Protocol