Hi,

I wanted to upgrade to the latest version of Axis C++ but
the Axis C++ trunk does not compile (I tried revision 543003).
This is the error I get:

      [cc] 3 total files to be compiled.
[cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/apache2/mod_axis2.cpp: In function `int axis_handler_helper(request_rec*)': [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/apache2/mod_axis2.cpp:73: error: cannot allocate an object of type `Apache2Transport' [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/apache2/mod_axis2.cpp:73: error: because the following virtual functions are abstract: [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/apache2/../../transport/SOAPTransport.h:299: error: virtual void axiscpp::SOAPTransport::closeConnection(bool)


The problem is that Apache2Transport inherits from SOAPTransport which defines
a pure virtual function

virtual void closeConnection(bool forceClose=true)=0;

whereas Apache2Transport only defines

void closeConnection(){};

I changed this to

void closeConnection(bool forceClose){};

but then I got this error

      [cc] 2 total files to be compiled.
[cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/simple_axis_server/SimpleAxisServer.cpp: In function `void handleTCPClient(int)': [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/simple_axis_server/SimpleAxisServer.cpp:177: error: cannot allocate an object of type `SimpleAxisTransport' [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/simple_axis_server/SimpleAxisServer.cpp:177: error: because the following virtual functions are abstract: [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/simple_axis_server/../../transport/SOAPTransport.h:299: error: virtual void axiscpp::SOAPTransport::closeConnection(bool) [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/simple_axis_server/SimpleAxisServer.cpp: In function `int main(int, char**)': [cc] /usr/local/tmp/emanuel/BUILD/ws-axis/obj/src/server/simple_axis_server/SimpleAxisServer.cpp:209: warning: unused variable 'running'

So it seems like someone changed the SOAPTransport class without changing all classes
that inherit from it.

This seems related to this issue

http://marc.info/?l=axis-c-dev&m=117194996918683&w=2

but that was in February so how could this problem have been sitting there for
so long? Am I not using the correct url for svn?
(I did: svn checkout http://svn.apache.org/repos/asf/webservices/axis/trunk/c ws-axis)

Could someone fix this or recommend the latest stable svn revision to use, or
point me to the latest and greatest Axis C++ source release.

/Cheers
Emanuel



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to