Question
I created an Axis2 client to test my axis2 webservice. However, i am getting the below error at runtime:
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)
any idea how i can resolve this?
Solution
It sounds like there is a class missing on the server side. Are you sure that your server side module includes "com.sample.LoginRequestDocument" in its deployment?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow