Results 1 to 4 of 4
Hello,
I have followed the calculator sample tutorial and cannot get the the calculator client working,
the problem appears on the server side.
I am working on Linux, I am ...
- 03-29-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
Axis C++ Calculator sample not working on Linux
Hello,
I have followed the calculator sample tutorial and cannot get the the calculator client working,
the problem appears on the server side.
I am working on Linux, I am using:
- Axis C++: axis-c-linux-current-bin.
- Xerces (parser xml): xerces-c2_2_0-linux8.0gcc32
- Apache 2: httpd-2.0.64.
I have used Eclipse to compile the example.
When I run the calculator client I get the following message on the command line:
"terminate called after throwing an instance of 'axiscpp::SoapFaultException'
what(): Cannot deserialize the requested element "
and warning message:
"/usr/bin/ld: warning: libstdc++.so.5, needed by /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/libaxis_client.so, may conflict with libstdc++.so.6"
Log error message:
server.wsdd:HTML Code:<SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>Library loading failed</faultstring> <faultactor>server name:listen port</faultactor> <detail><appSpecific>AxisEngineException:Library loading failed</appSpecific> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body>
axiscpp.conf:HTML Code:<service name="Calculator" provider="CPP:RPC" description="Simple Calculator Axis C++ Service "> <parameter name="className" value="/usr/local/axiscpp_deploy/webservices/Calculator.so" /> <parameter name="allowedMethods" value="add sub mul div "/> <parameter name="operationRequestMap" value="add:addRequest sub:subRequest mul:mulRequest div:divRequest "/> </service> </deployment>
Any help that anyone could provide would be greatly appreciated.HTML Code:Transport_http:/usr/local/axiscpp_deploy/lib/libhttp_transport.so Channel_HTTP:/usr/local/axiscpp_deploy/lib/libhttp_channel.so XMLParser:/usr/local/axiscpp_deploy/lib/libaxis_xmlparser.so WSDDFilePath:/usr/local/axiscpp_deploy/etc/server.wsdd LogPath:/usr/local/axiscpp_deploy/log/AxisLog ClientLogPath:/usr/local/axiscpp_deploy/log/AxisClientLog
Thanks, Krynux
- 03-29-2011 #2
You have:
when what you really want is:Code:<service name="Calculator" provider="CPP:RPC" description="Simple Calculator Axis C++ Service "> <parameter name="className" value="/usr/local/axiscpp_deploy/webservices/Calculator.so" /> <parameter name="allowedMethods" value="add sub mul div "/> <parameter name="operationRequestMap" value="add:addRequest sub:subRequest mul:mulRequest div:divRequest "/> </service> </deployment>
Code:<deployment> <service name="Calculator" provider="CPP:RPC" description="Simple Calculator Axis C++ Service "> <parameter name="className" value="/usr/local/axiscpp_deploy/webservices/Calculator.so" /> <parameter name="allowedMethods" value="add sub mul div "/> <parameter name="operationRequestMap" value="add:addRequest sub:subRequest mul:mulRequest div:divRequest "/> </service> </deployment>Linux user #126863 - see http://linuxcounter.net/
- 03-29-2011 #3Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
Sorry! I have forgotten to write in the message...
Code:<deployment> <service name="Calculator" provider="CPP:RPC" description="Simple Calculator Axis C++ Service "> <parameter name="className" value="/usr/local/axiscpp_deploy/webservices/libCalculator.so" /> <parameter name="allowedMethods" value="add sub mul div "/> <parameter name="operationRequestMap" value="add:addRequest sub:subRequest mul:mulRequest div:divRequest "/> </service> </deployment>
- 04-04-2011 #4Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
I have rebuilt Axis C++ with libstdc++.so.6, also Xerces 2.2 which made reference to .5 version, unfortunately the problem "Library loading failed" isn't resolved.
Also Axis C++ don't write the log file.
Can you give me a help?
Thanks
K.


Reply With Quote