I tried the JAXB example from Jersey and it works fine, but: if I try
the same code using a complex type instead of the simple type defined
in the original code, it start to fail...
so, instead of:
@XmlRootElement
public class JAXBXmlRootElement {
public String value;
... }
how about:
@XmlRootElement
public class JAXBXmlRootElement {
public String value;
public JAXBXmlType type;
... }
??