Eclipse下安裝Axis2外掛程式

來源:互聯網
上載者:User

1、下載Axis2及Eclipse外掛程式

http://axis.apache.org/axis2

http://archive.apache.org/dist/ws/axis2/tools/

下載axis2-eclipse-codegen-wizard.zip和axis2-eclipse-service-archiver-wizard.zip

2、解壓外掛程式


解壓後得到兩個檔案夾:Axis2_Codegen_Wizard_1.3.0和Axis2_Service_Archiver_1.3.0,

拷貝至eclipse\dropins

3、 重新啟動Eclipse

 

     如在File->New->Other中有Axis2 Wizards,說明外掛程式安裝成功。

4、 建立Axis2 Code Generator,選擇wsdl檔案可產生用戶端代理類。

  錯誤An error occurred while completing process-java.lang.reflect.InvocationTargetException解決:

1. 從AXIS2的LIB庫中複製"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util- concurrent-3.1.jar"

檔案到Axis2_Codegen_Wizard_1.3.0的lib目錄中,同時修改 Axis2_Codegen_Wizard_1.3.0

下的plugin.xml檔案,在檔案中中添加:

<library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar">
<export name="*"/>
< /library>

< library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
< /library>


如沒有backport-util-concurrent-3.1.jar,可以從地址:http://backport-jsr166.sourceforge.net/     下載。

2.將 $workspace位置\.metadata\.plugins下目錄 Axis2_Codegen_Wizard 刪除。

3.在命令列下切換至$ECLIPSE_HOME目錄,然後執行:eclipse –clear。

如還決有問題參考如下解決辦法:修改名字,再改回來

http://topic.csdn.net/u/20080524/01/37d43534-2490-43a4-a24d-bcf62b417de2.html#r_55176060

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.