2012-03-29 6 views
2

私のjaxbをコンパイルする際に、ファイル。エラーs4s-elt-schema-ns: 'bindings'の名前空間は、スキーマの名前空間 '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> 

答えて

1

あるXJC呼び出しの形式は次のとおりです。これはあなたのXJCコールがなければならないことを意味し

xjc -b <bindinfo> <schema> 

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

関連する問題