You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Michael Sutter <Su...@gmx.li> on 2007/08/29 17:10:45 UTC

cpp classes from axis2c service

Hello list,

I want to access cpp classes from a axis2c service. Therefore I generated a simple service adding two numbers. I compiled the skeleton file with g++ and all the rest of the files with gcc. After that everything is linked with g++. 
The problem is when I want to access the service a always get a segmentation fault. For my opinion everything is wright - all .h have the extern C statement and so I think it is possible to link c and cpp together in one so file.
Have I made something? Or is it impossible to access cpp classes from the service? If it is possible, what have I made wrong? I'm using axis2c version 1.0.

Kind regards 
Michael
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

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


Re: cpp classes from axis2c service

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Sutter wrote:
> Hello Rajiky
>
> I'm not so familiar with c development and for my opinion it is not 
> possible to debug a remote service.
> If it is how can I enable it? I already added some printf in the 
> service implementation. The first one is in the initialization of the 
> service.
> But these output are not visible - so I think the Segmentation fault 
> occurs when loading the so file.
Could you please send in your service code and the commands you used to 
compile the service?
That would help us to figure out the problem.

Thanks,
Samisa...
>
> Michael
>
> Rajika Kumarasiri wrote:
>> Hello Michael,
>> I did the same thing but for the client side(i.e developed a c++ 
>> client which uses the axis2/c libs), and it works fine for me, and I 
>> think your case should be possible, may be you can enable debug 
>> options in compilation and try to debug to figure out where it breaks.
>>
>> Rajika
>>
>> On 8/29/07, *Michael Sutter* <Sutter@gmx.li <ma...@gmx.li>> 
>> wrote:
>>
>>     Hello list,
>>
>>     I want to access cpp classes from a axis2c service. Therefore I
>>     generated a simple service adding two numbers. I compiled the
>>     skeleton file with g++ and all the rest of the files with gcc.
>>     After that everything is linked with g++.
>>     The problem is when I want to access the service a always get a
>>     segmentation fault. For my opinion everything is wright - all .h
>>     have the extern C statement and so I think it is possible to link
>>     c and cpp together in one so file.
>>     Have I made something? Or is it impossible to access cpp classes
>>     from the service? If it is possible, what have I made wrong? I'm
>>     using axis2c version 1.0.
>>
>>     Kind regards
>>     Michael
>>     --
>>     GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
>>     Alle Infos und kostenlose Anmeldung:
>>     http://www.gmx.net/de/go/freemail
>>
>>     ---------------------------------------------------------------------
>>     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>>     <ma...@ws.apache.org>
>>     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>>     <ma...@ws.apache.org>
>>
>>


-- 
Samisa Abeysinghe : WSO2 WSF/C
"http://wso2.org/projects/wsf/c?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services"


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


Re: cpp classes from axis2c service

Posted by Sutter <su...@gmx.li>.
Hello Rajiky

I'm not so familiar with c development and for my opinion it is not 
possible to debug a remote service.
If it is how can I enable it? I already added some printf in the service 
implementation. The first one is in the initialization of the service.
But these output are not visible - so I think the Segmentation fault 
occurs when loading the so file.

Michael

Rajika Kumarasiri wrote:
> Hello Michael,
> I did the same thing but for the client side(i.e developed a c++ 
> client which uses the axis2/c libs), and it works fine for me, and I 
> think your case should be possible, may be you can enable debug 
> options in compilation and try to debug to figure out where it breaks.
>
> Rajika
>
> On 8/29/07, *Michael Sutter* <Sutter@gmx.li <ma...@gmx.li>> 
> wrote:
>
>     Hello list,
>
>     I want to access cpp classes from a axis2c service. Therefore I
>     generated a simple service adding two numbers. I compiled the
>     skeleton file with g++ and all the rest of the files with gcc.
>     After that everything is linked with g++.
>     The problem is when I want to access the service a always get a
>     segmentation fault. For my opinion everything is wright - all .h
>     have the extern C statement and so I think it is possible to link
>     c and cpp together in one so file.
>     Have I made something? Or is it impossible to access cpp classes
>     from the service? If it is possible, what have I made wrong? I'm
>     using axis2c version 1.0.
>
>     Kind regards
>     Michael
>     --
>     GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
>     Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>

Re: cpp classes from axis2c service

Posted by Rajika Kumarasiri <ra...@gmail.com>.
Hello Michael,
I did the same thing but for the client side(i.e developed a c++ client
which uses the axis2/c libs), and it works fine for me, and I think your
case should be possible, may be you can enable debug options in compilation
and try to debug to figure out where it breaks.

Rajika

On 8/29/07, Michael Sutter <Su...@gmx.li> wrote:
>
> Hello list,
>
> I want to access cpp classes from a axis2c service. Therefore I generated
> a simple service adding two numbers. I compiled the skeleton file with g++
> and all the rest of the files with gcc. After that everything is linked with
> g++.
> The problem is when I want to access the service a always get a
> segmentation fault. For my opinion everything is wright - all .h have the
> extern C statement and so I think it is possible to link c and cpp together
> in one so file.
> Have I made something? Or is it impossible to access cpp classes from the
> service? If it is possible, what have I made wrong? I'm using axis2c version
> 1.0.
>
> Kind regards
> Michael
> --
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>