Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The matching wildcard is strict, but no declaration can be found for element 'dubbo:consumer'. #14187

Closed
3 of 4 tasks
walnut-tom opened this issue May 14, 2024 · 1 comment
Closed
3 of 4 tasks
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@walnut-tom
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

dubbo: 2.7.15
openjdk version "1.8.0_252"
CentOS release 6.10 (Final)

Steps to reproduce this issue

spring 配置文件中写 https://dubbo.apache.org/schema/dubbo/dubbo.xsd 在访问dubbo.apache.org网络不畅的情况下会导致服务启动失败
Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [dubbo-consumer.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 52; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:consumer'.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://dubbo.apache.org/schema/dubbo https://dubbo.apache.org/schema/dubbo/dubbo.xsd">

    <dubbo:consumer timeout="5000" check="false" />
</beans>

What you expected to happen

配置文件中可以写
xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
或者
xmlns:dubbo="https://dubbo.apache.org/schema/dubbo"

http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd
https://dubbo.apache.org/schema/dubbo https://dubbo.apache.org/schema/dubbo/dubbo.xsd

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@walnut-tom walnut-tom added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels May 14, 2024
@AlbumenJ
Copy link
Member

Duplicated with #14186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Archived in project
Development

No branches or pull requests

2 participants