【问题现象】使用JDK8或者少部分JDK7跑cxf项目时报此错误:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 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
at private java.util.Map com.pn.common.webservice.api.jaxws_asm.GetActivityEgameRebateConfigListTotal.arg0
at com.pn.common.webservice.api.jaxws_asm.GetActivityEgameRebateConfigListTotal
java.util.Map does not have a no-arg default constructor.
this problem is related to the following location:
at java.util.Map
at private java.util.Map com.pn.common.webservice.api.jaxws_asm.GetActivityEgameRebateConfigListTotal.arg0
at com.pn.common.webservice.api.jaxws_asm.GetActivityEgameRebateConfigListTotal
【问题分析】