title: Using JAXB to unmarshal/marshal a List<String>
body: <p>I'm trying to create a very simple REST server.  I just have a test method that will return a List of Strings.  Here's the code:</p>
  
  <pre>
  <code>
  @GET
  @Path("/test2")
  public List test2(){
      List list=new Vector();
      list.add("a");
      list.add("b");
      return list;
  }
  </code>
  </pre>
  
  <p>It gives the following error:</p>
  
  <pre>
  SEVERE: A message body writer for Java type,
  class java.util.Vector, and MIME media type,
  application/octet-stream, was not found
  </pre>
  
  <p>I was hoping JAXB had a default setting for simple types like String, Integer, etc.  I guess not.  Here's what I imagined:</p>
  
  <pre><code>
  &lt;Strings>
    &lt;String>a&lt;/String>
    &lt;String>b&lt;/String>
  &lt;/Strings>
  </code></pre>
  
  <p>What's the easiest way to make this method work?</p>