• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.apache.axis2.AxisFault: samples.quickstart.service.axiom.StockQuoteService

 
Deepak Gupta G
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run the axiom StockQuoteService sample as provided in the axis2-1.2 download. the AXIOMClient.java runs fine under tomcat 6.x and jre 6.x on my PC.

After that I try to deploy the StockQuoteService.aar file on the tomcat running in a solaris m/c. The version of tomcat, jre are the same. I matched all the axis2*.jars and the axiom-*.jars in the axis2/lib and tomcat/lib. I am able to have the access to the services page (http://<ip>:8080/axis2/services.., and display the wsdl file for the StockQuoteService using the URL.

But When I try to use the service using the AXIOMClient.java, it gives the following exception:

[java] send getPricePayload: <tns:getPrice xmlns:tns="http://quickstart.samples/xsd"><tns:symbol>WSO</tns:symbol></tns:getPrice>
[java] send updatePayload: <tns:update xmlns:tns="http://quickstart.samples/xsd"><tns:symbol>WSO</tns:symbol><tns:price>123.42</tns:price></tns:update>
[java] done
[java] org.apache.axis2.AxisFault: samples.quickstart.service.axiom.StockQuoteService
[java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434)
[java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373)
[java] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
[java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
[java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
[java] at samples.quickstart.clients.AXIOMClient.main(AXIOMClient.java:73)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[java] at org.apache.tools.ant.Task.perform(Task.java:348)
[java] at org.apache.tools.ant.Target.execute(Target.java:357)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Both the client and the server code is unchanged. The application runs fine on my PC but gives the above error on the solaris m/c. Can somebody give me some pointers what to look for?

Thanks in advance
Deepak
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!