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

yangtengjiao21 发布于 2015/01/08 10:54
阅读 992
收藏 0

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

加载中
0
李昊文
有重名的方法把,方法重载也不行
0
13123123
13123123
包冲突了吧?

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