2014-02-14 96 views
2

面对以下异常试图我的应用程序部署到AS:两个类具有相同的XML类型名称为AXIS

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服务,所以我无法注释类...

回答

0

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

相关问题