我创建了一个Axis2客户端来测试我的axis2 webservice。但是,我在运行时收到以下错误:
org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError: Could not initialize
class com.sample.LoginRequestDocument
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
ava:517)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:371)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
165)
at com.sample.sampleStub.login(sampleStub.java:4543)
我知道如何解决这个问题?
答案 0 :(得分:1)
听起来服务器端缺少一个类。您确定您的服务器端模块在其部署中包含“com.sample.LoginRequestDocument”吗?