axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krynux <cdem...@gmail.com>
Subject Re: Calculator sample not working on Linux
Date Tue, 05 Apr 2011 08:35:30 GMT

Hi Nadir, 

Yes, I have a subdirectory etc (/usr/local/axiscpp_deploy/etc) that contains
two files: axiscpp.conf and server.wsdd. 
-------------
axiscpp.conf:
-------------
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
--------------
server.wsdd:
--------------
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:C="http://xml.apache.org/axis/wsdd/providers/C"
xmlns:CPP="http://xml.apache.org/axis/wsdd/providers/CPP">
<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>

In the lib directory (/usr/local/axiscpp_deploy/lib) there are: 
- libaxis_client.so.1.6b
- libaxis_server.so.1.6b
- libaxis_xmlparser.so
- libhttp_channel.so
- libhttp_channel.so.1.6b
- libhttp_transport.so
- libhttp_transport.so.1.6.b
- libxerces-c.so.22
- libxerces-c.so.22.0

In the webservices directory there is libcalculator.so


Nadir Amra wrote:
> 
> Krynux,
> 
> In the /usr/local/axiscpp_deploy directory, do you have a subdirectory etc 
> that contains axiscpp.conf file?  And if so, what is in this file?  This 
> file should contain paths to the various libraries.
> 
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
> 
> krynux <cdemuru@gmail.com> wrote on 04/04/2011 11:53:23 AM:
> 
>> From: krynux <cdemuru@gmail.com>
>> To: axis-c-user@ws.apache.org
>> Date: 04/04/2011 11:53 AM
>> Subject: Re: Calculator sample not working on Linux
>> 
>> 
>> Hi Nadir,
>> 
>> The AXISCPP_DEPLOY and the other environment variables are in the bashrc
>> file, like this:
>> --------------
>> AXISCPP_HOME="/usr/local/axiscpp"
>> AXISCPP_DEPLOY="/usr/local/axiscpp_deploy"
>> APACHE2_HOME="/etc/apache2"
>> XERCESC_HOME="/usr/local/xerces-c"
>> LD_LIBRARY_PATH="$XERCESC_HOME/lib:$AXISCPP_DEPLOY/bin:
>> $AXISCPP_DEPLOY/lib:$LD_LIBRARY_PATH"
>> export AXISCPP_HOME AXISCPP_DEPLOY XERCESC_HOME APACHE2_HOME 
> LD_LIBRARY_PATH
>> --------------
>> 
>> Thanks
>> 
>> Krynux
>> 
>> Nadir Amra wrote:
>> > 
>> > Are you pointing to a configuration file via environment variable 
>> > AXISCPP_DEPLOY?  What is it set to and what are the contents of the 
> config 
>> > file?
>> > 
>> > Nadir Amra
>> > Integrated Web Services for IBM i Operating System
>> > Internet: amra@us.ibm.com
>> > 
>> > krynux <cdemuru@gmail.com> wrote on 04/04/2011 01:40:57 AM:
>> > 
>> >> From: krynux <cdemuru@gmail.com>
>> >> To: axis-c-user@ws.apache.org
>> >> Date: 04/04/2011 01:41 AM
>> >> Subject: Re: Calculator sample not working on Linux
>> >> 
>> >> 
>> >> 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. 
>> >> 
>> >> 
>> >> krynux wrote:
>> >> > 
>> >> > 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: 
>> >> > ------------------
>> >> > <?xml version='1.0' encoding='utf-8' ?>
>> >> > <SOAP-ENV:Envelope
>> >> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> >> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> >> > <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>
>> >> > </SOAP-ENV:Envelope>
>> >> > ------------
>> >> > server.wsdd:
>> >> > ------------
>> >> > <?xml version="1.0" encoding="UTF-8"?>
>> >> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
>> >> > xmlns:C="http://xml.apache.org/axis/wsdd/providers/C"
>> >> > xmlns:CPP="http://xml.apache.org/axis/wsdd/providers/CPP">
>> >> >     <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>
>> >> > -------------
>> >> > axiscpp.conf:
>> >> > -------------
>> >> > 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
>> >> > -------------
>> >> > 
>> >> > Any help that anyone could provide would be greatly appreciated. 
>> >> > 
>> >> > Thanks, Krynux
>> >> > 
>> >> > 
>> >> > 
>> >> 
>> >> -- 
>> >> View this message in context: http://old.nabble.com/Calculator-
>> >> sample-not-working-on-Linux-tp31231386p31311744.html
>> >> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>> >> 
>> >> 
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
>> >> For additional commands, e-mail: c-user-help@axis.apache.org
>> >> 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: http://old.nabble.com/Calculator-
>> sample-not-working-on-Linux-tp31231386p31316327.html
>> Sent from the Axis - C++ - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-user-help@axis.apache.org
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Calculator-sample-not-working-on-Linux-tp31231386p31321977.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message