title: JAXB unmarshalling does not work for complex object containing collection
body: <p>I am trying to unmarshall a XML document created from jersey JAXB annotated class.</p>
  
  <pre><code>JAXBContext jaxbCtx = JAXBContext.newInstance(MyClass.class);
  Unmarshaller m = jaxbCtx.createUnmarshaller();
  MyClass result = (MyClass) m.unmarshal(in)
  </code></pre>
  
  <p>MyClass looks something like:</p>
  
  <pre><code>@XmlRootElement(name = "my-class")
  @XmlSeeAlso(SomeOther.class)
  public class MyClass {
      private Collection&lt;SomeOther&gt; result;
      private URI uri;
      private String errorMsg;
  
      @XmlElement
      public String getError() {
           return errorMsg;
      }
      @XmlElement
      public Collection&lt;SomeOther&gt; getResult() {
           return // some Set&lt;SomeOther&gt;;
      }
      @XmlAttribute
      public URI getUri() {
           return uri;
      }
  </code></pre>
  
  <p>The sample XML is as below:</p>
  
  <pre><code>&lt;my-class uri="some uri"&gt;
      &lt;error&gt;&lt;/error&gt;
      &lt;result&gt;
           &lt;some other information in tags&gt;
      &lt;/result&gt;
      ...
      &lt;result&gt;
      &lt;/result&gt;
  &lt;/my-class&gt;
  </code></pre>
  
  <p>The object returned by jaxb unmarshaler contains all values as null;
  Could somebody help here?
  Thanks
  Nayn</p>