Here's the customization in my XML Schema:
<element name="Widget">
<complexType>
<annotation>
<appinfo>
<jxb:class implClass="com.blah.WidgetTransformer"/>
</appinfo>
</annotation>
<sequence>
etc.
I have compiled the schema using xjc without the customization, with no errors. When I include the above customization, I get the error:
[ERROR] Cannot derive a name from schema. A name attribute specified to the <class> customization.