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条)

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能