org.apache.axis2.AxisFault: Service class XXXXX must have public as access Modifier解决方案
来源:互联网 发布:手机淘宝么注册网店 编辑:程序博客网 时间:2024/05/20 21:49
使用Axis2工具生成客户端调用辅助类后,编写客户端调用代码运行时报错,完整错误信息如下:
log4j:WARN No appenders could be found for logger (org.apache.axiom.locator.DefaultOMMetaFactoryLocator).log4j:WARN Please initialize the log4j system properly.org.apache.axis2.AxisFault: Service class com.csdn.ws.axis2.recipe01.HelloWorld must have public as access Modifier at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:508) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:368) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150) at com.csdn.ws.axis2.recipe01.HelloWorldStub.sayHello(HelloWorldStub.java:162) at com.csdn.ws.axis2.recipe01.client.Client.main(Client.java:15)
乍一看错误信息好像是说web服务接口和实现类必须定义为public,检查代码发现就是public,真正的原因是在services.xml中描述WebService时
<parameter name="ServiceClass"> com.csdn.ws.axis2.recipe01.HelloWorldImpl</parameter>
ServiceClass属性应该指定Web服务实现类,而不是接口。
0 0
- org.apache.axis2.AxisFault: Service class XXXXX must have public as access Modifier解决方案
- Axis2 报must have public as access Modifier
- org.apache.axis2.AxisFault: First Element must contain the local name, Envel
- org.apache.axis2.AxisFault: First Element must contain the local name, Envel
- 我遇到的org.apache.axis2.AxisFault: First Element must contain the local name, Envel
- 解决org.apache.axis2.AxisFault: unknown 错误
- org.apache.axis2.AxisFault: Unable to access unsupported property javax.xml.stream.supportDTD
- org.apache.axis2.AxisFault: The AXIS engine could not find a target service to invoke! targetServic
- org.apache.axis2.AxisFault: For input string:(Axis2)
- Error: org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at 的原因
- org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
- org.apache.axis2.AxisFault: Timeout waiting for connection
- org.apache.axis2.AxisFault: Timeout waiting for connection
- org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden
- org.apache.axis2.AxisFault: Namespace URI may not be null
- org.apache.axis2.AxisFault: No such operation 'plus'
- org.apache.axis2.AxisFault at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext错误解决
- Axis2 Exception: org.apache.axis2.AxisFault: Timeout waiting for connection Solution
- Scala 之 trait 关键字
- android,service实例,播放音乐
- 归并排序求逆序对数目
- 输出星号,倒三角
- 斯坦福大学深度学习与自然语言处理第四讲:词窗口分类和神经网络
- org.apache.axis2.AxisFault: Service class XXXXX must have public as access Modifier解决方案
- RealtimeBoard(可视化协同工作白板)
- JavaScript事件冒泡简介及应用
- [POJ3264]Balanced Lineup 做题笔记
- 求两个数的最大公约数
- POJ 2376 Cleaning Shifts 区间贪心
- 设计模式:单例模式
- sqlite字符串问题
- HanLP里使用DAT存取字典的方法