一个关于webservice的Axis问题 Processing file deploy.wsdd Exception: deploy.wsdd (系统找不到指定的文件。)

来源:互联网 发布:淘宝严查刷单时间 编辑:程序博客网 时间:2024/05/21 09:57

CSDN 看到一个 错误 


各位大侠,在下刚开始研究webservice用的是axis技术,现在我用命令行生成server-config.wsdd文件的时候无法生成,提示找不到文件,是何原因啊。


D:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse>set Axis_Lib=D:
\workspace\GetMsgService\WebRoot\WEB-INF\lib

D:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse>set Java_Cmd=ja
va -Djava.ext.dirs=D:\workspace\GetMsgService\WebRoot\WEB-INF\lib

D:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse>java -Djava.ext
.dirs=D:\workspace\GetMsgService\WebRoot\WEB-INF\lib org.apache.axis.client.Admi
nClient -lhttp://localhost:8081/GetMsgService/servlet/AxisServlet deploy.wsdd
Processing file deploy.wsdd
Exception: deploy.wsdd (系统找不到指定的文件。)

D:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\eclipse>pause

请按任意键继续. . .


====================================================================



这个是我建立的deploy.wsdd的代码,他是和deploy.bat是同级目录。
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <service name="GetMsgService" provider="java:RPC">
  <parameter name="className" value="getMsg.getMsg"/>
  <parameter name="allowedMethods" value="*"/>
 </service>
</deployment>



解决办法 :

 把 deploy.bat  文件中的 下面一句话中的蓝色部分 换为红色部分

http://localhost:8081/GetMsgService/servlet/AxisServlet deploy.wsdd


set Axis_Lib=D:\axis-1_4\lib
set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib%
set Axis_Servlet=http://localhost:8080/axistest/
services/AxisServlet






1 1
原创粉丝点击