title: Right annotations to a list<String> JAXB
body: <p>I searched and saw many questions with similiar scanerios yet i couldnt make my solution work</p>
  
  <p>I want a simple object to be converted into XML using JAXB.</p>
  
  <p>My problem is i have an arrayList as one of my properties and i just cant find the right annotation to go with it.</p>
  
  <pre><code>@XmlRootElement(name = "fighter")
  public class fighter{
  private int health;
  private int energy;
  private String name;
  private List&lt;String&gt; abilities;
  }
  </code></pre>
  
  <p>if i remove the abilities property i can marshall\unmarshall this class.</p>
  
  <p>but when i try to do it with the abilities property its telling me i have illegal annotation</p>
  
  <pre><code>@XmlElementWrapper(name = "abilitiesList")
  @XmlElement(name = "ability")
  public List&lt;String&gt; getAbilities(){
  return abilities
  }
  </code></pre>
  
  <p>I've tried all sort of annotations but I just dont get whats wrong with it.</p>
  
  <p>Thanks for the help</p>