spring mvc + cxf 3.0 开发webservice 接口启动时出现如下错误

发布于 2021-11-23 23:55:25 字数 1735 浏览 888 评论 3

springmvc+cxf3.0.3开发webservice接口启动时出现如下错误

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
类的两个属性具有相同名称 "retMsg"
this problem is related to the following location:
at public java.lang.String com.firstsoft.mrlab.ws.bean.ReturnMsg.getRetMsg()
at com.firstsoft.mrlab.ws.bean.ReturnMsg
at private com.firstsoft.mrlab.ws.bean.ReturnMsg com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse._return
at com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse
this problem is related to the following location:
at public java.lang.String com.firstsoft.mrlab.ws.bean.ReturnMsg.retMsg
at com.firstsoft.mrlab.ws.bean.ReturnMsg
at private com.firstsoft.mrlab.ws.bean.ReturnMsg com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse._return
at com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse
类的两个属性具有相同名称 "returnCode"
this problem is related to the following location:
at public java.lang.String com.firstsoft.mrlab.ws.bean.ReturnMsg.getReturnCode()
at com.firstsoft.mrlab.ws.bean.ReturnMsg
at private com.firstsoft.mrlab.ws.bean.ReturnMsg com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse._return
at com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse
this problem is related to the following location:
at public java.lang.String com.firstsoft.mrlab.ws.bean.ReturnMsg.returnCode
at com.firstsoft.mrlab.ws.bean.ReturnMsg
at private com.firstsoft.mrlab.ws.bean.ReturnMsg com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse._return
at com.firstsoft.mrlab.ws.service.jaxws_asm.BindClientResponse

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

网名女生简单气质 2021-11-30 03:32:55

你的接口service 定义的方法有 引用的model ,然后这个model.的包名称没写正确.

冬天旳寂寞 2021-11-30 03:19:15

包冲突了吧?

冷弦 2021-11-30 02:37:02

有重名的方法把,方法重载也不行

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文