I have two codes, in two different java projects, doing almost the same thing, (unmarshalling the input of a webservice according to an xsd-file).
But in one case I
I have the same problem. JAXB unmarshaller.unmarshal returns a JAXBElement instead of desired MyObject.
JAXBElement
MyObject
I found and removed @XmlElementDecl. The problem is solved.
@XmlElementDecl