I have looked at this link but couldn't derive a solution to my problem:JAXB binding - "unable to honor this conversion customization"
I have this XML
<xs:simpleType name="auditory_stimuli">
<xs:restriction base="xs:boolean"/>
</xs:simpleType>
Which I customized using this:
<xs:simpleType name="auditory_stimuli">
<xs:restriction base="xs:boolean">
<xs:annotation>
<xs:appinfo>
<jaxb:javaType name="java.lang.Boolean"/>
</xs:appinfo>
</xs:annotation>
</xs:restriction>
However, when I run xjc, I get this exception
Specified javaType customization is not used.
Does anyone see what I am doing wrong?