两个类具有相同的AXIS XML类型名称

时间:2014-02-14 14:49:56

标签: wsdl axis

尝试将我的应用部署到AS时遇到以下异常:

Two classes have the same XML type name "{http://WS.gid.com/}fetchLogsResponse". Use @XmlType.name and @XmlType.namespace to assign different names to them.
    this problem is related to the following location:
            at com.gid.WS.FetchLogs_Response
            at public com.gid.WS.FetchLogs_Response com.gid.WS.jaxws.FetchLogsResponse._return
            at com.gid.WS.jaxws.FetchLogsResponse
    this problem is related to the following location:
            at com.gid.WS.jaxws.FetchLogsResponse

我已经google了一下,发现有必要正确地注释我的类,但我使用的是轴生成的Web服务,所以我无法注释类...

1 个答案:

答案 0 :(得分:0)

发现问题:Web服务已经部署了两次 - 通过wsdd和jaxws通过@Service注释。所以,我只是忘了在迁移到轴时删除@Service注释。