You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/08/25 06:26:15 UTC

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1931: java.lang.NoSuchMethodError: org.apache.servicecomb.foundation.common.utils.ReflectUtils.getClassByName(Ljava/lang/String;)Ljava/lang/Class;

liubao68 edited a comment on issue #1931:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1931#issuecomment-679825334


   After execute `mvn dependency:tree` , you can find some dependencies error:
   
   ```
   [INFO] |  \- com.huawei.paas.cse:foundation-auth:jar:2.5.0:compile
   [INFO] |     +- org.apache.servicecomb:foundation-common:jar:1.3.0:compile
   [INFO] |     |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.9.8:compile
   [INFO] |     |  |  +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.8:compile
   [INFO] |     |  |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
   [INFO] |     |  |  \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
   [INFO] |     |  +- log4j:log4j:jar:1.2.17:compile
   [INFO] |     |  +- org.apache.httpcomponents:httpclient:jar:4.5.7:compile
   [INFO] |     |  |  \- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
   [INFO] |     |  +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
   [INFO] |     |  \- javax.servlet:javax.servlet-api:jar:4.0.1:compile
   [INFO] |     +- org.apache.servicecomb:foundation-ssl:jar:1.3.0:compile
   [INFO] |     |  \- io.netty:netty-tcnative-boringssl-static:jar:2.0.22.Final:compile
   [INFO] |     +- commons-io:commons-io:jar:2.6:compile
   [INFO] |     \- org.apache.servicecomb:foundation-config:jar:1.3.0:compile
   [INFO] |        +- io.netty:netty-codec:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-codec-http:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-codec-http2:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-common:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-handler:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-buffer:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-codec-socks:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-handler-proxy:jar:4.1.31.Final:compile
   [INFO] |        +- io.netty:netty-resolver:jar:4.1.31.Final:compile
   [INFO] |        \- io.netty:netty-transport:jar:4.1.31.Final:compile
   [INFO] \- org.apache.servicecomb:java-chassis-dependencies:pom:2.0.0:compile
   ```
   
   old versions of servicecomb included. 
   
   
   This is because solution-basic include foundation-auth and which dependencies old version of servicecomb and cause error. 
   
   
   It is recommened you use dependency management to manage dependency and this will not heppen. The servicecomb-samplse is correct and your sample changed it .
   
   For more informanction, please read [使用maven管理复杂依赖关系的技巧](http://servicecomb.apache.org/cn/docs/maven_dependency_management/)
   
   
   BTW, foudnation-auth is removed from solutioin-basic, you can also try 2.0.1 or higher version. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org