Eclipse + Apache Axis2 发布RESTful WebService(二)配置开发环境

 

1、

下载axis2相关软件地址:http://axis.apache.org/axis2/java/core/download.html

2、

安装插件:将axis2-eclipse-codegen-plugin-x.x.x和axis2-eclipse-service-plugin-x.x.x两个jar包放入eclipse目录下的plugins中,重新启动eclipse

3、eclipse里axis2配置:Window->Perferences->WebServices->Axis2 perferences->Axis2 Runtime->Axis2 Runtime location,Browse选择解压axis2-x.x.x-bin.zip得到的文件目录

 

【问题集】

1、Unable to add the follwing facets to project 项目名: Axis2 Web Services Core, Axis2 Web Services

这里说明你没有指定Axis runtime.解决办法:

  • 上apache下载Axis2
  • 解决到系统目录,然后eclipse-->preferences-->Web Service-->Axis2 Preferences指到解压目录

2、创建WebService时提示:Axis2 runtime不支持

Axis2只能使用Servlet3.0以下的规范
在新建Dynamic Web Project项目时需要选择servlet版本,如下图,例如:可以选择2.5

 

转载于:https://www.cnblogs.com/dlsunf/p/8663444.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值