將下載到的Axis 的兩個plug-in解壓縮到C:\Program Files\MyEclipse 6.5\eclipse\plugins目錄下。
將Axis2_Codegen_Wizard改名為org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin
將Axis_Service_Archiver-wizard.改名為
org.apache.axis2.tool.Axis_Service_Archiver_1.3.0
在D:\Program Files\MyEclipse 6.5\eclipse\links目錄下新建文件名為:axis-eclipse-plugin.link
內容為:
path=D:\Program Files\MyEclipse 6.5\eclipse\plugins
重新啟動myeclipse,在file->new->other中可看到Axis2 Wizards,axis2插件安裝成功。
在使用codegen插件來從WSDL文件生成代碼時,到了最后一步出現"An error occurred while completing process -java.lang.reflect.InvocationTargetException"
錯誤,重試N次,結果依然,
從AXIS2的LIB庫中復制"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util-concurrent-3.1.jar"文件到Codegen的lib目錄中,同時修改plugin.xml文件,添加
-
1
2 <library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar">
3 <export name="*"/>
4 </library>
5 <library name="lib/backport-util-concurrent-3.1.jar">
6 <export name="*"/>
7 </library>
到plugin.xml文件中,保存后重新啟動Eclipse即可!
在new-other即可看到如下圖所示: