This content has been marked as final. Show 1 reply
I now believe that the
is for when you are modifying the schema so that you don't need the external bindings file. As a result I have modified my xjb as follows:
This removes the error that xs:annotation is not associated with any schema element but results in the same error -
<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" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:extensionBindingPrefixes="xjc" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" version="2.1"> <jaxb:globalBindings> <xjc:treatRestrictionLikeNewType/> </jaxb:globalBindings> </bindings>
So it seems that my bindings file is either being ignored by wsimport or is still just plain wrong. Any suggestions.
[ERROR] Base complex type "A" is derived by restriction, while this complex type "B" is derived by extension. This is not currently handled by XJC, but we are seeking input on this issue. Please report this to the JAXB team.