For the others, if you hve a primitive in java the mapping could not be nillable nor minOccurs=0 - this is because primitives can not be null. So if you want to map an XML element/attribute to a Wrapper (which can be null) you should use nillable="true" or minOccurs=0 (which also means that the element could be absent)