0 Replies Latest reply on Jun 1, 2012 12:57 AM by Matthew Casperson

    Map interfaces to concrete class in Seam 2 and RESTEasy

    Matthew Casperson Newbie

      I have a REST interface running in Seam 2 that has @PUT methods that accept an interface as the paramater. The RESTEasy documentation says to annotate interfaces with @XmlSeeAlso to link them to concrete classes. I tried that (along with @JsonDeserialize and @JsonTypeInfo as it is a JSON REST method), but I always get the following error:

       

      Can not construct instance of org.codehaus.jackson.map.type.SimpleType, problem: abstract types can only be instantiated with additional type information
      

       

      How do you map interfaces and abstract classes to concrete classes in RESTEasy on Seam 2?