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:javaType name="java.util.Calendar" xmlType="xs:dateTime" 
printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
            <xjc:noValidator />


Popular posts from this blog

Can not connect to git using ssh (Permissions 0644 for '/root/.ssh/id_rsa' are too open.

Upload file on Google cloud storage using Java servlet on google app engine

Android: where to run keytool command in android