Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10 counts of IllegalAnnotationExceptions

在tomcat下运行jax-ws 异常

Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "{http://tempuri.org/}getprice_Five". Use @XmlType.name and @XmlType.namespace to assign different names to them.
这个就有点杯具,避免这种事情最好是在你implement类中加上‍targetNamespace,自己一个个找,手动改起来很麻烦。

posted @ 2016-06-06 17:16  七夏之  阅读(3564)  评论(0编辑  收藏  举报