尽管如此,它们都没有帮助我,因为我所理解的是这是一个常见的错误,而且我相信我的代码是正确的,因为它与我的同事传递给我的另一个项目完全相同。unable to marshal type "modules.CollaborationInfo" as an element because it is missing an @XmlRootElementjavax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.Xm
marshal type "com.test.services.schema.maindata.v1.DataResponse" as an element because it is missing an @XmlRootElementmarshal type "com.test.services.schema.maindata.v1.DataResponse" as an element because it is missing an @XmlRootElementdebug level logging or &
javax.xml.bind.MarshalException[com.sun.istack.internal.SAXException2: unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement annotation], headers={timestamp=1432121523488