[jboss-user] [JBossWS] - Using (Hash)Map in wrapper class

jaap.taal do-not-reply at jboss.com
Sat Apr 28 20:04:12 EDT 2007


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

  | @WebService()
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class EchoMapSSTest {
  | 
  |     @WebMethod
  |     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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041665#4041665

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041665



More information about the jboss-user mailing list