eclipse安装axis2插件和生成客户端代理详解

1、下载MyEclipse Axis2插件
    1) http://apache.justdn.org/ws/axis2/tools/1_1_1/axis2-eclipse-codegen-wizard.zip    
    2)
http://apache.justdn.org/ws/axis2/tools/1_1_1/axis2-eclipse-service-archiver-wizard. zip

2、 将插件解压缩到MyEclipse根目录下的Axis-Plugin-Dir/eclipse/plugins目录中,将 Axis2_Codegen_Wizard_1.2.1改名为 org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin,将 Axis_Service_Archiver_1.0.0改名为 org.apache.axis2.tool.Axis_Service_Archiver_1.0.0

3、在MyEclipse目录下的eclipse/links目录下增加文件axis-eclipse-plugin.link,内容为 path=MyEclipse所在目录的绝对路径//Axis-Plugin-Dir,然后删除MyEclipse/eclipse /configuration目录下的org.eclipse.update目录

4、启动myeclipse,在file->new->other中即可看到Axis2 Wizards,如下图所示。至此,axis2插件安装成功。


Axis2 Eclipse plugin: Code Generator 在Finish 时产生Exception: [版本]
Eclipse 3.2
Axis2 1.4

[问题原因]
主要的问题在于 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, 应可解决问题

[參考]
Error while using Axis2 Code Generator Plugin for Eclipse
http://www.nabble.com/Error-while-using-Axis2-Code-Generator-Plugin-for-Eclipse-td17147595.html
http://web-latte.blogspot.com/2008/05/axis2-eclipse-plugin-code-generator.html

少包啦!
去AXIS2的安装目录的lib下面把backport-util-concurrent-3.1.jar和geronimo-stax- api_1.0_spec-1.0.1.jar复制到插件安装目录下面的lib里,在修改plugin.xml文件,在 <runtime>中间加入
          <library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
  </library>
  <library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar">
<export name="*"/>
  </library>
就可以啦啊。
反正我是这么解决的啊。
你试试看吧!!!

Introduction

Apache Axis2 is the most popular and widely used core engine for Web services. It is a complete re-design and re-write of the widely used Apache Axis SOAP stack built on the lessons learned from Apache Axis. Apache Axis2 is more efficient, more modular, and more XML-oriented than the older version. It is carefully designed to support the easy addition of plugin "modules" that extend its functionality for features such as security and reliability. On the other hand, Eclipse is a project aiming to provide a universal tool set for development. It is an open source IDE that is mostly provided in Java, but the development language is independent and not limited in any way. It is the most widely used IDE for most computer languages, especially for JAVA.

Developing applications using any programming language is becoming easier with the availability of tooling. If tooling is available in areas like JAVA application development, it will facilitate faster and easier application development, and also increase the productivity of the developers. Most integrated development environments (IDEs) address the tooling and the features available around a particular area of development. Most IDEs available today go beyond supplying traditional tooling facilities, which address only certain areas in programming. They are becoming frameworks for developing applications.

This tutorial mainly focuses on the two above mentioned tools available for Web service developers. They are, Axis2 Eclipse Plugins, which are built around Eclipse-the Framework available for JAVA application development, and Axis2- the widely

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值