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 MATLAB动图问题
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题