Axis2 开发环境设立
Axis2 开发环境设置
在Eclipse中安装axis2 插件
1. go to http://archive.apache.org/dist/ws/axis2/tools/1_4/
2. download two plugin
a. axis2-eclipse-codegen-wizard-1.4.zip
b. axis2-eclipse-service-archiver-wizard-1.4.zip
3. unzip and copy them to plugin folder of eclipse
4. restart eclipse
5. File--New---Other
在tomcat 下运行 axis2
1. download war package of axis2 from http://axis.apache.org/axis2/java/core/download.cgi
2. put the ware under tomcat's webapp
, unzip and rename it.
3. access url http://localhost:8080/axis2/services/listServices
you will see the service list
环境变量设置
1. download axis2-1.6.1-bin.zip
2. unzip it to C:\axis2-1.6.1
3. set environment AXIS2_HOME=C:\axis2-1.6.1
add AXIS2_HOME\bin to path
错误处理
1. Axis2 Eclipse plugin: Code Generator 在Finish 时产生Exception: java.lang.reflect.InvocationTargetException
[问题原因]
主要的问题在于 Code Generator plugin 内缺少了 backport-util-concurrent-3.1.jar 包
[解决方案]
- 关闭 Eclipse
- copy %AXIS2_HOME%\lib\backport-util-concurrent-3.1.jar 到下列 folder
%ECLIPSE_HOME%\plugins\Axis2_Codegen_Wizard_1.3.0\lib
- 注册此jar 包: 編輯 %ECLIPSE_HOME%\plugins\Axis2_Codegen_Wizard_1.3.0\plugin.xml , 在 <runtime> 內加入下面的字串
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
- 执行 Eclipse 即可
- 若问题仍存在, 尝试改变Eclipse 使用的 JRE, 换成 JAVA 6
- 使用 JRE 1.6 启动 Eclipse 后, 若仍有问题, 试着加入 -clean 参数启动 Eclipse, 清除 osig cache:
eclipse.exe -vm "c:\java\jre1.6.0_05\bin\java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M
- 关闭 Eclipse 后, 再以一般方式启动 Eclipse, 应可解决问题
在Eclipse中安装axis2 插件
1. go to http://archive.apache.org/dist/ws/axis2/tools/1_4/
2. download two plugin
a. axis2-eclipse-codegen-wizard-1.4.zip
b. axis2-eclipse-service-archiver-wizard-1.4.zip
3. unzip and copy them to plugin folder of eclipse
4. restart eclipse
5. File--New---Other
在tomcat 下运行 axis2
1. download war package of axis2 from http://axis.apache.org/axis2/java/core/download.cgi
2. put the ware under tomcat's webapp
, unzip and rename it.
3. access url http://localhost:8080/axis2/services/listServices
you will see the service list
环境变量设置
1. download axis2-1.6.1-bin.zip
2. unzip it to C:\axis2-1.6.1
3. set environment AXIS2_HOME=C:\axis2-1.6.1
add AXIS2_HOME\bin to path
错误处理
1. Axis2 Eclipse plugin: Code Generator 在Finish 时产生Exception: java.lang.reflect.InvocationTargetException
[问题原因]
主要的问题在于 Code Generator plugin 内缺少了 backport-util-concurrent-3.1.jar 包
[解决方案]
- 关闭 Eclipse
- copy %AXIS2_HOME%\lib\backport-util-concurrent-3.1.jar 到下列 folder
%ECLIPSE_HOME%\plugins\Axis2_Codegen_Wizard_1.3.0\lib
- 注册此jar 包: 編輯 %ECLIPSE_HOME%\plugins\Axis2_Codegen_Wizard_1.3.0\plugin.xml , 在 <runtime> 內加入下面的字串
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
- 执行 Eclipse 即可
- 若问题仍存在, 尝试改变Eclipse 使用的 JRE, 换成 JAVA 6
- 使用 JRE 1.6 启动 Eclipse 后, 若仍有问题, 试着加入 -clean 参数启动 Eclipse, 清除 osig cache:
eclipse.exe -vm "c:\java\jre1.6.0_05\bin\java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M
- 关闭 Eclipse 后, 再以一般方式启动 Eclipse, 应可解决问题