jqaini520 2010-03-15 23:16 采纳率: 0%
浏览 307
已采纳

按照精华帖《Web_Service开发指南_2.3.1》 打代码出现的错误提示?怎么解决呢

我是个新手 不知道下面的问题如何解决呢???

按照精华帖《Web_Service开发指南_2.3.1》 学习的时候
学习到2.1.4.2 WSDD定制发布
创建的类:
package com.axis.wsdd;

public class HelloWorldWSDD {
private int requestCount = 0;

public String hello(String name){
    requestCount++;     
    System.out.println("requestCount : " + requestCount);
    System.out.println("Received : " + name);
    return "Hello: " + name;
}

public Float add(Float a,float b){
    requestCount++; 
    String result = "a= " + a + ",b= " + b;
    System.out.println("requestCount : " + requestCount);
    System.out.println("Received : " + result);
    return a + b;
}

}

在 D:\Tomcat 5.0\webapps\axis\WEB-INF创建的deploy.wsdd
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">





生成的server-config.wsdd
<?xml version="1.0" encoding="UTF-8"?>






























http://xml.apache.org/axis/wsdd/






























文章说此时可以访问http://localhost:8080/axis/servlet/AxisServlet
但是报错:
And now... Some Services
AXIS error
Sorry, something seems to have gone wrong... here are the details:

Fault - No service class was found! Are you missing a className option?
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: No service class was found! Are you missing a className option?
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:Jeff-Queenie

创建客户端测试的时候也报错:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.apache.axis.ConfigurationException: No service class was found! Are you missing a className option?
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: No service class was found! Are you missing a className option?
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:No service class was found! Are you missing a className option?

  • 写回答

2条回答 默认 最新

  • wanghaolovezlq 2010-03-15 23:39
    关注

    这个当然不对,少了className等
    修改为




    你现在报的异常也是在说这个问题
    stackTrace:No service class was found! [color=red]Are you missing a className option?[/color]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥15 复杂网络,变滞后传递熵,FDA
  • ¥20 csv格式数据集预处理及模型选择
  • ¥15 部分网页页面无法显示!
  • ¥15 怎样解决power bi 中设置管理聚合,详细信息表和详细信息列显示灰色,而不能选择相应的内容呢?
  • ¥15 QTOF MSE数据分析
  • ¥15 平板录音机录音问题解决