学习axis部署在jboss中

正常流程查看:http://www.blogjava.net/nokiaguy/archive/2009/01/02/249556.html

axis2.war部署到 jboss4.2.3出现的问题。
java.io.FileNotFoundException:
F:jboss-4.2.3.GAserverdefault.deployaxis2.warWEB-INF (拒绝访问。)
解决办法:
修改文件:conf/axis2.xml,删除下列行:
<deployer extension=".jar" directory="servicejars"

class="org.apache.axis2.jaxws.framework.JAXWSDeployer"/>

生成客户端:
1、将axis-bin下的lib目录下的lib拷贝到某个目录:如D:\javaSoftware\axis-1_4
2、编写bat文件,内容如下:

set LibPath=D:\javaSoftware\axis-1_4

set AxisClassPath=%LibPath%\axis.jar;%LibPath%\commons-logging.jar;%LibPath%\commons-

discovery.jar;%LibPath%\jaxrpc.jar;%LibPath%\saaj.jar;%LibPath%\wsdl4j.jar;

set WSDL2JavaCommand=java -classpath %AxisClassPath% org.apache.axis.wsdl.WSDL2Java
set WsDeploy=-sset WSDL2JavaCommand=java -classpath %AxisClassPath%

org.apache.axis.wsdl.WSDL2Java
set WsDeploy=-s
%WSDL2JavaCommand% %WsDeploy% test.wsdl

调用bat文件,生成客户端文件

编写客户端测试文件
package ws.client;
public class Client
{
public static void main(String[] args) throws Exception
{

MyServiceLocator service = new MyServiceLocator();
MyServicePortType stub = service.getmyServiceHttpSoap12Endpoint();

System.out.println(stub.getGreeting("wolao"));
}
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值