简体   繁体   English

[错误] s4s-elt-schema-ns:“绑定”的名称空间必须来自模式名称空间“ http://www.w3.org/2001/XMLSchema”

[英]ERROR] s4s-elt-schema-ns: The namespace of 'bindings' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'

I am facing below error while compiling my jaxb file. 编译jaxb文件时,我遇到以下错误。

C:\bea\jdk160_05\bin>xjc cmf.jaxb
parsing a schema...
[ERROR] s4s-elt-schema-ns: The namespace of element 'bindings' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
  line 2 of file:/C:/bea/jdk160_05/bin/cmf.jaxb

JaxB File is JaxB文件为

<?xml version='1.0'?>
<bindings xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"   xmlns:xs="http://www.w3.org/2001/XMLSchema"  version="2.1"> 
    <bindings schemaLocation="bi-cmf-flat_V1_0.xsd" >
        <!-- rename the value element -->
        <bindings node="//xs:complexType[@name='DeductibleType']">          
            <class name="DeductibleTypeAttribute"/>
        </bindings>
    </bindings>
</bindings>

The format for the XJC call is: XJC调用的格式为:

xjc -b <bindinfo> <schema>

This means your XJC call should be: 这意味着您的XJC呼叫应为:

xjc -b cmf.jaxb bi-cmf-flat_V1_0.xsd

Example

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何删除名称空间xmlns:xsi =“ http://www.w3.org/2001/XMLSchema-instance” - How to remove namespace xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” src-resolve.4.2:解析组件“xs:name”时出错。 检测到“xs:name”在命名空间“http://www.w3.org/2001/XMLSchema”中 - src-resolve.4.2: Error resolving component 'xs:name'. It was detected that 'xs:name' is in namespace 'http://www.w3.org/2001/XMLSchema' 找不到http://www.w3.org/2001/XMLSchema的工厂 - Unable to find a factory for http://www.w3.org/2001/XMLSchema IWAB0399E 从 WSDL 生成 Java 时出错:java.io.IOException:类型 {http://www.w3.org/2001/XMLSchema}array 被引用但未定义 - IWAB0399E Error in generating Java from WSDL: java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}array is referenced but not defined java.lang.IllegalArgumentException:没有实现由以下人员指定的模式语言的 SchemaFactory:http://www.w3.org/XML/XMLSchema/v1.1 - java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1 JAXB - 防止空属性 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:nil=&quot;true&quot; - JAXB - Prevent nillable attributes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" 无法找到XML模式名称空间的Spring NamespaceHandler [http://www.springframework.org/schema/osgi] - Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi] 无法找到XML模式名称空间的Spring NamespaceHandler [http://www.springframework.org/schema/context] - Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context] 无法找到XML模式名称空间的Spring NamespaceHandler [http://www.springframework.org/schema/mvc] - Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/mvc] 无法找到用于XML模式名称空间的Spring NamespaceHandler [http://www.springframework.org/schema/faces] - Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/faces]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM