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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to