2012-03-29 28 views
2

我在編譯我的jaxb時遇到了錯誤文件。錯誤] s4s-elt-schema-ns:'綁定'的命名空間必須來自模式命名空間'http://www.w3.org/2001/XMLSchema'

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文件是

<?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> 

回答