2014-02-14 187 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註釋。

相關問題