apache / shardingsphere-elasticjob

Distributed scheduled job
Apache License 2.0
8.15k stars 3.29k forks source link

cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'reg:zookeeper' 的声明。 #581

Closed apa7 closed 6 years ago

apa7 commented 6 years ago

Please answer these questions before submitting your issue. Thanks! 开源不易,我们希望将精力放在完成新功能和解决有价值的问题上,为了让大家的配合更具有效率,请填写以下列出的全部问题

Which version of Elastic-Job do you using?(您使用的Elastic-Job版本为?)

2.1.5

Expected behavior (您预期的结果是)

使用文档中的案例, 启动报错了

Actual behavior (实际运行的结果是)

**[org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Ignored XML validation warning org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 173; schema_reference.4: 无法读取方案文档 'http://www.dangdang.com/schema/ddframe/reg/reg.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是

Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1 字节的 UTF-8 序列的字节 1 无效。 at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:701) Offending resource: URL [file:/D:/workspace/wallets/target/classes/artifacts/wallet_war_exploded/WEB-INF/classes/spring/spring-core.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from URL [file:/D:/workspace/wallets/target/classes/artifacts/wallet_war_exploded/WEB-INF/classes/spring/spring-elasticjob.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 173; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'reg:zookeeper' 的声明。 Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from URL [file:/D:/workspace/wallets/target/classes/artifacts/wallet_war_exploded/WEB-INF/classes/spring/spring-elasticjob.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 173; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'reg:zookeeper' 的声明。**

Steps to reproduce the behavior (可重现问题的操作步骤)

Please provide the reproduce example codes (such as github link),otherwise we will label the issue as Invalid and close it.(为了节省复现问题的时间,请务必提供可重现的代码,否则我们会将issue直接标记为invalid并关闭)

Code should based on https://github.com/elasticjob/elastic-job-example (代码请基于 https://github.com/elasticjob/elastic-job-example

apa7 commented 6 years ago

环境是spring, tomcat启动

apa7 commented 6 years ago

文件编码问题, sorry, 已解决