The error message is as follows:
The dubbo version I use is: 2.6.1
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:minipro-consumer.xml]
Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://dubbo.apache.org/schema/dubbo]Offending resource: class path resource [minipro-consumer.xml]
The content of minipro-consumer.xml is as follows:
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://dubbo.apache.org/schema/dubbo" xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd"> <!-- consumer's application name, used for tracing dependency relationship (not a matching criterion), don't set it same as provider --> <dubbo:application name="minipro-consumer"/> <!-- use multicast registry center to discover service --> <!-- <dubbo:registry address="multicast://224.5.6.7:1234"/> --> <!-- Use the zookeeper registry to expose the service address --> <dubbo:registry address="zookeeper://192.168.1.103:2181"/> <!-- Expose services on port 20880 using the dubbo protocol --> <dubbo:protocol name="dubbo" port="20880"/> <!-- generate proxy for the remote service, then demoService can be used in the same way as the local regular interface --> <dubbo:reference id="userService" check="false" interface="com.junlenet.soa.user.api.service.IUserService"/> </beans>
The problem is: the configuration in dubbo-config-spring-2.6.1.jar --> META-INF-->spring.handlers is still the previous domain name code.alibabatech.com , but now the dubbo code downloaded on github is Yes: dubbo.apache.org has been pitted.....