$ java Mixed # javax annotations on the bean, jakarta JAXB runtime Exception in thread "main" jakarta.xml.bind.MarshalException - with linked exception: [com.sun.istack.SAXException2: unable to marshal type "Mixed$Order" as an element because it is missing an @XmlRootElement annotation] Caused by: com.sun.istack.SAXException2: unable to marshal type "Mixed$Order" as an element because it is missing an @XmlRootElement annotation ... 3 more