title: How to serialize a List with JAXB and XmlJavaTypeAdapter?
body: <p>I have a <code>List&lt;String&gt;</code> that I want to serialize using <code>JAXB</code>. The list is also preprocessed by some <code>XmlJavaTypeAdapter</code> as follows:</p>
  
  <pre><code>@XmlElement(name = "category")
  @XmlJavaTypeAdapter(AdapterXml.class) //for modifying some values inside the list during serialization
  private List&lt;String&gt; categories;
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
  java.util.List is an interface, and JAXB cannot process interfaces.
      this problem is related to the following location:
          at java.util.List
  </code></pre>
  
  <p>Why? How can I serialize the list?</p>