spring mvc + cxf 3.0 开发webservice 接口启动时出现如下错误
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你的接口service 定义的方法有 引用的model ,然后这个model.的包名称没写正确.
包冲突了吧?
有重名的方法把,方法重载也不行