Understanding JAXB: Java Binding Customization
Subject:   error when running the example
Date:   2003-12-22 12:20:55
From:   hashimisayed
Response to: error when running the example

Anytime you refer to JAXB extensions in your xsd, you have to compile with the "-extension" switch. An example of this:

<simpleType name="Age">
<xs:javaType name="int" />
<xs:restriction base="xs:positiveInteger"/>

Because I am using the javaType vendor extension in my customization, I have to tell the schema compiler to compile with extensions:

xjc schemafilename.xsd -extension