sharding-jdbc-spring-namespace 4.0.0-RC1 namespcae configuration
## because concurrent problem in on-line environment, so i downloaded 4.0.0-RC1 version and package it .But i'm getting in trouble when startup. This is my namespace configuration, but when startup,the error below occured, like this
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sharding="http://shardingsphere.apache.org/schema/shardingsphere/sharding" xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://shardingsphere.apache.org/schema/shardingsphere/sharding
http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd">
Caused by: org.xml.sax.SAXParseException: TargetNamespace.1: 应为名称空间 'http://shardingsphere.apache.org/schema/shardingsphere/sharding', 但方案文档的目标名称空间为 'http://shardingsphere.io/schema/shardingsphere/sharding'。
I guess the problem is
http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd
but targetNameSpace in this xsd file is
<xsd:schema xmlns="http://shardingsphere.io/schema/shardingsphere/sharding"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:beans="http://www.springframework.org/schema/beans"
targetNamespace="http://shardingsphere.io/schema/shardingsphere/sharding"
@jiejiecool I have checked the xsd file, but I don't find this problem, would you mind inform which branch you download? Or provide more detail information about the xsd and pom file about ShardingSphere.
I used TAG 4.0.0-RC1, packaged and deployed source code as a jar to personal maven repository,but I found tag-4.0.0-RC1 was deleted.
Sorry for the confusion, can you clone the dev branch and install in your local environment, then try to reproduce this problem with 4.0.0-RC1-SNAPSHOT? Because I cannot reproduce this problem.
same exception, need help
@abbbud Are you using TAG 4.0.0-RC1? Or 4.0.0-RC1-SNAPSHOT?
@KomachiSion NO,I USE TAG 3.1.0
@abbbud 3.1.0 is not apache release. it should be http://shardingsphere.io/schema/shardingsphere/sharding. Maybe your configuration file has some error, I suggest you open a new issue and describe your situation and provide configuration.
@jiejiecool Can you reproduce this problem with 4.0.0-RC1-SNAPSHOT version?
It should be caused by old xsd files in the official website.