JAXB:GlobalBinding :: cvc-complex-type.2.4.b: The content of element 'jaxb:globalBindings' is not complete
Error ::
cvc-complex-type.2.4.b: The content of element 'jaxb:globalBindings' is not complete. One of '{"http://
java.sun.com/xml/ns/jaxb":javaType, "http://java.sun.com/xml/ns/jaxb":serializable, WC[##other:"http://
java.sun.com/xml/ns/jaxb"]}' is expected.
Solution :
Check <jaxb:globalBindings> tag in your bindings.xml, you may be missing some required tag (If you are using latest eclipse like eclipse-Luna or latest).
Add this tag if missing,
<jaxb:globalBindings>
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime"
printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
<xjc:noValidator />
</jaxb:globalBindings>
cvc-complex-type.2.4.b: The content of element 'jaxb:globalBindings' is not complete. One of '{"http://
java.sun.com/xml/ns/jaxb":javaType, "http://java.sun.com/xml/ns/jaxb":serializable, WC[##other:"http://
java.sun.com/xml/ns/jaxb"]}' is expected.
Solution :
Check <jaxb:globalBindings> tag in your bindings.xml, you may be missing some required tag (If you are using latest eclipse like eclipse-Luna or latest).
Add this tag if missing,
<jaxb:globalBindings>
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime"
printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
<xjc:noValidator />
</jaxb:globalBindings>
Comments
Post a Comment