[Jersey] Marshall Exception with linked JAXB exception when sending a map with a list

From: <>
Date: Tue, 27 Sep 2011 13:51:10 +0000 (GMT)

     I have a class like below which has a map that has a map with a
list in it

e.g. Map<String, Map<String, List<Flight>>> map ....

   I have followed instructions online to make a wrapper class for
collections and maps.

public class XCollection
    public List getList()....

public class XMap
     public LIst<XEntry<K,V>>()...

  I can send a list with a PUT request just fine using the above
XCollection class. I can also send a simple Map of String, String just
find using a PUT request and the above class.

  When I try and wrap my Map<String, Map<String, List<Flight>>> as a
XMap<String, XMap<String, XCollection>>> I get the above exception.

I don't understand why I am unable to create a map when I have
registered my XCollection in my provider class and my XMap? Am I doing
something really wrong or do I have a misunderstanding on how JAXB