今天使用myeclipse生成webservice时,一直报错:
An internal error occurred during: “Generating JAX-WS Web Services”.
Unable to create JAXBContext
在启动tomcat时显示如下错误:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
Two classes have the same XML type name “debtAgeAnalysis”. Use @XmlType.name and @XmlType.namespace to assign different names to them.
this problem is related to the following location:
at com.asiainfo.cbss.controller.jaxws.DebtAgeAnalysis
this problem is related to the following location:
at com.asiainfo.cbss.entity.DebtAgeAnalysis
at private java.util.List com.asiainfo.cbss.controller.jaxws.DebtAgeAnalysisResponse._return
at com.asiainfo.cbss.controller.jaxws.DebtAgeAnalysisResponse
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.b