You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/17 14:19:15 UTC

[GitHub] [dubbo] ptxl opened a new issue #9051: use nacos as registry centors,provider service can't start

ptxl opened a new issue #9051:
URL: https://github.com/apache/dubbo/issues/9051


   **the main error info is as follow, do anybody help me thanks in advance**
    registry=org.apache.dubbo.registry.integration.RegistryProtocol:
   java.lang.IllegalStateException: Failed to load extension class (interface: interface org.apache.dubbo.rpc.Protocol, class line: registry=org.apache.dubbo.registry.integration.RegistryProtocol) in jar:file:/D:/data/.m2/repo/org/apache/dubbo/dubbo-registry-api/2.7.7/dubbo-registry-api-2.7.7.jar!/META-INF/dubbo/internal/org.apache.dubbo.rpc.Protocol, cause: Duplicate extension org.apache.dubbo.rpc.Protocol name registry on org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol and org.apache.dubbo.registry.integration.RegistryProtocol
   java.lang.IllegalStateException: Failed to load extension class (interface: interface org.apache.dubbo.rpc.Protocol, class line: registry=org.apache.dubbo.registry.integration.RegistryProtocol) in jar:file:/D:/data/.m2/repo/org/apache/dubbo/dubbo-registry-api/2.7.7/dubbo-registry-api-2.7.7.jar!/META-INF/dubbo/internal/org.apache.dubbo.rpc.Protocol, cause: Duplicate extension org.apache.dubbo.rpc.Protocol name registry on org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol and org.apache.dubbo.registry.integration.RegistryProtocol
   	at org.apache.dubbo.common.extension.ExtensionLoader.loadResource(ExtensionLoader.java:901)
   
   
   
   pom.xml file
   ![image](https://user-images.githubusercontent.com/12063911/137631338-cd3fd76a-6291-40c1-96f6-c59eaf0a2049.png)
   
   
   provider.xml
   ![image](https://user-images.githubusercontent.com/12063911/137631378-d025bad3-da4d-44c4-b936-cb50f984c2f2.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ptxl commented on issue #9051: use nacos as registry centors,provider service can't start

Posted by GitBox <gi...@apache.org>.
ptxl commented on issue #9051:
URL: https://github.com/apache/dubbo/issues/9051#issuecomment-946624685


   > 看异常提示意思是SPI重复,你看看是引入jar包的SPI重复,还是你定义了重复的SPI。 方案: 1、如果是引入jar包的SPI重复,你尝试用maven排除重复SPI的jar包。 2、如果是自己定义的SPI,则删除你定义的SPI。
   > 
   > 可以尝试一下这两种方法排除问题。
   
   第二种排除,因为我没自己实现
   第一种尴尬的是不能排除jar报,一个是dubbo-registry-nacos依赖的jar dubbo-registry-api,另外一个是dubbo自带的spi实现


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] neighbor-uncleWang commented on issue #9051: use nacos as registry centors,provider service can't start

Posted by GitBox <gi...@apache.org>.
neighbor-uncleWang commented on issue #9051:
URL: https://github.com/apache/dubbo/issues/9051#issuecomment-945540614


   看异常提示意思是SPI重复,你看看是引入jar包的SPI重复,还是你定义了重复的SPI。
   方案:
   1、如果是引入jar包的SPI重复,你尝试用maven排除重复SPI的jar包。
    2、如果是自己定义的SPI,则删除你定义的SPI。
   
   可以尝试一下这两种方法排除问题。


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ptxl closed issue #9051: use nacos as registry centors,provider service can't start

Posted by GitBox <gi...@apache.org>.
ptxl closed issue #9051:
URL: https://github.com/apache/dubbo/issues/9051


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ptxl commented on issue #9051: use nacos as registry centors,provider service can't start

Posted by GitBox <gi...@apache.org>.
ptxl commented on issue #9051:
URL: https://github.com/apache/dubbo/issues/9051#issuecomment-946622502


   > 看异常提示意思是SPI重复,你看看是引入jar包的SPI重复,还是你定义了重复的SPI。 方案: 1、如果是引入jar包的SPI重复,你尝试用maven排除重复SPI的jar包。 2、如果是自己定义的SPI,则删除你定义的SPI。
   > 
   > 可以尝试一下这两种方法排除问题。
   
   是spi重复,但是是根据官网的教程添加的依赖,为什么添加nacos相关的jar就报spi重复,我使用zookeeper是没问题的,排除的话无法排除啊,一个是dubbo自生带的spi实现一个是dubbo-registry-api,无法排除啊,名字都叫registry,这个是不是一个bug


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ptxl commented on issue #9051: use nacos as registry centors,provider service can't start

Posted by GitBox <gi...@apache.org>.
ptxl commented on issue #9051:
URL: https://github.com/apache/dubbo/issues/9051#issuecomment-946633047


   > 看异常提示意思是SPI重复,你看看是引入jar包的SPI重复,还是你定义了重复的SPI。 方案: 1、如果是引入jar包的SPI重复,你尝试用maven排除重复SPI的jar包。 2、如果是自己定义的SPI,则删除你定义的SPI。
   > 
   > 可以尝试一下这两种方法排除问题。
   
   ![image](https://user-images.githubusercontent.com/12063911/137901087-248443ca-37c0-4a08-a60d-c8eb0898ce9d.png)
   我这样配置排除了,居然可以,这个官网的教程真是误人子弟


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org