shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

sharding-jdbc-spring-namespace 4.0.0-RC1 namespcae configuration

Open jiejiecool opened this issue 7 years ago • 11 comments

## 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 avatar Mar 18 '19 12:03 jiejiecool

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

KomachiSion avatar Mar 19 '19 01:03 KomachiSion

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.

jiejiecool avatar Mar 19 '19 02:03 jiejiecool

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.

KomachiSion avatar Mar 19 '19 03:03 KomachiSion

same exception, need help

ws-yuxf avatar Mar 19 '19 10:03 ws-yuxf

@abbbud Are you using TAG 4.0.0-RC1? Or 4.0.0-RC1-SNAPSHOT?

KomachiSion avatar Mar 19 '19 12:03 KomachiSion

@KomachiSion NO,I USE TAG 3.1.0

ws-yuxf avatar Mar 20 '19 01:03 ws-yuxf

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

KomachiSion avatar Mar 20 '19 02:03 KomachiSion

@jiejiecool Can you reproduce this problem with 4.0.0-RC1-SNAPSHOT version?

KomachiSion avatar Mar 21 '19 00:03 KomachiSion

It should be caused by old xsd files in the official website.

KomachiSion avatar Mar 26 '19 01:03 KomachiSion