5 Replies Latest reply on Apr 15, 2008 7:49 PM by Jaap Taal

    Using (Hash)Map in wrapper class

    Jaap Taal Newbie

      I'm using jboss-4.2.0.CR2 with jbossws-1.2.1.GA
      I'm trying to deploy the following simple echo webservice.

      @SOAPBinding(style = SOAPBinding.Style.RPC)
      public class EchoMapSSTest {
       public Map<String, String> echoMapSS(Map<String, String> myMap) {
       return myMap;

      JBoss gives the following error message:

      ... 28 more
      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
      java.util.Map is an interface, and JAXB can't handle interfaces.
      this problem is related to the following location:
      at java.util.Map

      The JAXB2.0 documentation clearly states that java.util.Map MUST be supported, so I think I'm doing something wrong?

      Please help