You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Subra A Narayanan <as...@gmail.com> on 2007/08/02 23:22:38 UTC

Service compilation problem

Hello folks,

I am trying to compile the 'math' service from the samples directory without
using the make file provided with the samples. I used the instructions from
the Axic2/C manual (http://ws.apache.org/axis2/c/docs/axis2c_manual.html)

I used the following commands to compile:

gcc -c -omath.o -I/usr/local/axis2c/include/axis2-1.0/
-L/usr/local/axis2c/lib -fPIC math.c
gcc -c -omath_skeleton.o -I/usr/local/axis2c/include/axis2-1.0/
-L/usr/local/axis2c/lib -fPIC math_skeleton.c
gcc -shared math.o math_skeleton.o -L/usr/local/axis2c/lib -laxis2 -
olibmath.so


I see a libmath.so file being generated. But my service doesn't work. I do
realize that the above commands do not generate the following files which
are generated if I use the make file:

libmath.a
libmath.la
libmath.so.0
libmath.so.0.0.0


What am I doing wrong? I am trying this so that I can compile my own web
services without having to rely on the make file. I have written my web
service but I cannot test it as I am stuck at this point.

Any help or pointers in the right direction would be greatly helpful.

TIA

Subra

Re: Service compilation problem

Posted by Subra A Narayanan <as...@gmail.com>.
I followed ur suggestion and looked at the gcc command options as generated
by the make file. That solved the problem. Thanks!

On 8/7/07, Samisa Abeysinghe <sa...@wso2.com> wrote:
>
> Subra A Narayanan wrote:
> > Thanks Samisa.
> >
> > I tried your solution and it worked for the 'math' sample.
> >
> > So I tried the same thing with my own web service, but that fails.
> > This is what I see in the axis2c log. The processing just stops after
> > this line ==> "class_loader.c(135) Object loaded successfully
> > " as you can see below. So I modified the make file that came with the
> > samples so that it now builds my own webservice too along with the
> > other sample web services. And that makes my web service work!!!
> > I have no idea whats going on here. Any help is greatly appreciated!
> What you can do is, when you run make, see the gcc commands run by make.
> Then you can see the compile options passed by make to gcc. If you copy
> those and run gcc with those options, then that would work.
>
> Samisa...
>
> --
> Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services
> Developers' Portal)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Service compilation problem

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Subra A Narayanan wrote:
> Thanks Samisa.
>
> I tried your solution and it worked for the 'math' sample.
>
> So I tried the same thing with my own web service, but that fails. 
> This is what I see in the axis2c log. The processing just stops after 
> this line ==> "class_loader.c(135) Object loaded successfully
> " as you can see below. So I modified the make file that came with the 
> samples so that it now builds my own webservice too along with the 
> other sample web services. And that makes my web service work!!!
> I have no idea whats going on here. Any help is greatly appreciated!
What you can do is, when you run make, see the gcc commands run by make. 
Then you can see the compile options passed by make to gcc. If you copy 
those and run gcc with those options, then that would work.

Samisa...

-- 
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal)


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


Re: Service compilation problem

Posted by Subra A Narayanan <as...@gmail.com>.
Thanks Samisa.

I tried your solution and it worked for the 'math' sample.

So I tried the same thing with my own web service, but that fails. This is
what I see in the axis2c log. The processing just stops after this line ==>
"class_loader.c(135) Object loaded successfully
" as you can see below. So I modified the make file that came with the
samples so that it now builds my own webservice too along with the other
sample web services. And that makes my web service work!!!
I have no idea whats going on here. Any help is greatly appreciated!

[Mon Aug  6 23:13:33 2007] [debug] apache2_worker.c(143) Client HTTP version
HTTP/1.1
[Mon Aug  6 23:13:33 2007] [debug] req_uri_disp.c(103) Checking for service
using target endpoint address :
/axis2/services/object/RemoveFile?filetype=image&timestamp=1234&filename=
psa.jpg
[Mon Aug  6 23:13:33 2007] [debug] req_uri_disp.c(124) Service found using
target endpoint address
[Mon Aug  6 23:13:33 2007] [debug] req_uri_disp.c(169) Checking for
operation using                              target endpoint uri fragment :
RemoveFile
[Mon Aug  6 23:13:33 2007] [debug] req_uri_disp.c(178) Operation found using
target endpoint uri fragment
[Mon Aug  6 23:13:33 2007] [debug] engine.c(571) Invoking phase Transport
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
request_uri_based_dispatcher within the phase Transport
[Mon Aug  6 23:13:33 2007] [debug] engine.c(571) Invoking phase PreDispatch
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
AddressingInHandler within the phase PreDispatch
[Mon Aug  6 23:13:33 2007] [info]  Starting addressing in handler .........
[Mon Aug  6 23:13:33 2007] [info]  addr_in_handler.c
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
LoggingInHandler within the phase PreDispatch
[Mon Aug  6 23:13:33 2007] [info]  Starting logging in handler .........
[Mon Aug  6 23:13:33 2007] [info]  Input message: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"><soapenv:Header></soapenv:Header><soapenv:Body><RemoveFile><filetype>image</filetype><timestamp>1234</timestamp><filename>
psa.jpg</filename></RemoveFile></soapenv:Body></soapenv:Envelope>
[Mon Aug  6 23:13:33 2007] [debug] engine.c(571) Invoking phase Dispatch
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
soap_message_body_based_dispatcher within the phase Dispatch
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
addressing_based_dispatcher within the phase Dispatch
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
soap_action_based_dispatcher within the phase Dispatch
[Mon Aug  6 23:13:33 2007] [debug] engine.c(571) Invoking phase PostDispatch
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
dispatch_post_conditions_evaluator within the phase PostDispatch
[Mon Aug  6 23:13:33 2007] [debug] phase.c(195) Invoke the handler
context_handler within the phase PostDispatch
[Mon Aug  6 23:13:33 2007] [debug] class_loader.c(135) Object loaded
successfully





On 8/5/07, Samisa Abeysinghe <sa...@wso2.com> wrote:
>
>
> > it doesn't work if I try to compile using these commands
> >
> > gcc -c -omath.o -I/usr/local/axis2c/include/axis2-1.0/
> > -L/usr/local/axis2c/lib -fPIC math.c
> > gcc -c -omath_skeleton.o -I/usr/local/axis2c/include/axis2-1.0/
> > -L/usr/local/axis2c/lib -fPIC math_skeleton.c
> > gcc -shared math.o math_skeleton.o -L/usr/local/axis2c/lib -laxis2
> > -olibmath.so
> In place of the last command, try using the following:
> gcc -shared math.o math_skeleton.o -ldl -lpthread  -olibmath.so
>
> Then copy the libmath.so to the services folder and try.
>
> Samisa...
>
> --
> Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services
> Developers' Portal)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Service compilation problem

Posted by Samisa Abeysinghe <sa...@wso2.com>.
> it doesn't work if I try to compile using these commands
>  
> gcc -c -omath.o -I/usr/local/axis2c/include/axis2-1.0/ 
> -L/usr/local/axis2c/lib -fPIC math.c
> gcc -c -omath_skeleton.o -I/usr/local/axis2c/include/axis2-1.0/ 
> -L/usr/local/axis2c/lib -fPIC math_skeleton.c
> gcc -shared math.o math_skeleton.o -L/usr/local/axis2c/lib -laxis2 
> -olibmath.so
In place of the last command, try using the following:
gcc -shared math.o math_skeleton.o -ldl -lpthread  -olibmath.so

Then copy the libmath.so to the services folder and try.

Samisa...

-- 
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal)


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


Re: Service compilation problem

Posted by Subra A Narayanan <as...@gmail.com>.
Hello Sahan,

I am not using the simple axis server but the apache HTTP server. I built
from axis2/c source and specified the correct option to build the apache
http server module.

my math service works if i use the following commands

./configure
make
make install

it doesn't work if I try to compile using these commands

gcc -c -omath.o -I/usr/local/axis2c/include/axis2-1.0/
-L/usr/local/axis2c/lib -fPIC math.c
gcc -c -omath_skeleton.o -I/usr/local/axis2c/include/axis2-1.0/
-L/usr/local/axis2c/lib -fPIC math_skeleton.c
gcc -shared math.o math_skeleton.o -L/usr/local/axis2c/lib -laxis2 -
olibmath.so


what am i doing wrong?

TIA
Subra


On 8/5/07, Sahan Gamage <sa...@gmail.com> wrote:
>
> Hi Subra,
>
> You're trying to do a REST style invocation. Are you running
> axis2_http_server on port 80 ? If you're trying the default options
> (by just typing ./axis2_http_server) the default port is 9090. So you
> have to try the URL:
> http://localhost:9090/axis2/services/math/add?param1=5&param2=9
>
> -sahan
>
> On 8/6/07, Subra A Narayanan <as...@gmail.com> wrote:
> > I am still waiting to hear from you guys as to what you think is causing
> the
> > problem. Any help/pointers is greatly appreciated.
> >
> >
> > ---------- Forwarded message ----------
> > From: Subra A Narayanan <as...@gmail.com>
> > Date: Aug 3, 2007 9:39 AM
> > Subject: Re: Service compilation problem
> > To: Apache AXIS C User List < axis-c-user@ws.apache.org>
> >
> > Hello,
> >
> > Thanks for all your responses.
> >
> > Sahan, I am using the same services.xml file that came with the math
> sample.
> >
> > Here is what I see
> >
> > 1. I type in
> > http://localhost/axis2/services/math/add?param1=5&param2=9
> >
> >
> > 2. I get a "Page cannot be displayed" error in my web browser
> >
> > 3. In the log file I see this
> >
> > [Fri Aug  3 09:10:55 2007] [debug] apache2_worker.c(143)
> > Client HTTP version HTTP/1.1
> > [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(103) Checking for
> service
> > using target endpoint address :
> > /axis2/services/math/add?param1=5&param2=9
> > [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(124) Service found
> using
> > target endpoint address
> > [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(169) Checking for
> > operation using                              target
> > endpoint uri fragment : add
> > [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(178) Operation found
> using
> > target endpoint uri fragment
> > [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase
> Transport
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > request_uri_based_dispatcher within the phase Transport
> > [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase
> PreDispatch
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > AddressingInHandler within the phase PreDispatch
> > [Fri Aug  3 09:10:55 2007] [info]  Starting addressing in handler
> .........
> > [Fri Aug  3 09:10:55 2007] [info]  addr_in_handler.c
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > LoggingInHandler within the phase PreDispatch
> > [Fri Aug  3 09:10:55 2007] [info]  Starting logging in handler .........
>
> > [Fri Aug  3 09:10:55 2007] [info]  Input message: <soapenv:Envelope
> > xmlns:soapenv="
> > http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><add><param1>5</param1><param2>9</param2></add></soapenv:Body></soapenv:Envelope
>
> > >
> > [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Dispatch
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > soap_message_body_based_dispatcher within the phase
> > Dispatch
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > addressing_based_dispatcher within the phase Dispatch
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > soap_action_based_dispatcher within the phase Dispatch
> > [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase
> PostDispatch
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> > dispatch_post_conditions_evaluator within the phase
> > PostDispatch
> > [Fri Aug  3 09:10:55 2007] [debug] phase.c (195) Invoke the handler
> > context_handler within the phase PostDispatch
> >
> >
> > As you can see from the above log file, the server just hangs after
> "Invoke
> > the handler context_handler within the phase PostDispatch" step.
> >
> > I found a similar post in the archive, probably this will give you guys
> more
> > idea as to what is happening.
> >
> > http://marc.info/?l=axis-c-user&m=118125285316252&w=2
> >
> > Thanks everyone for ur help. Its greatly appreciated.
> >
> > Subra
> >
> >
> >
> >
> >
> >
> >
> > On 8/3/07, Dr. Florian Steinborn <florian.steinborn@drb.insel.de >
> wrote:
> > > Hi,
> > >
> > > > I see a libmath.so file being generated. But my service doesn't
> work. I
> > >
> > > what does it mean, "doesn't work"? Does not work at all, you cannot
> see an
> > > invocation, the service crashes? What about logging?
> > >
> > > Greeting,
> > > Flori
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-c-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Service compilation problem

Posted by Sahan Gamage <sa...@gmail.com>.
Hi Subra,

You're trying to do a REST style invocation. Are you running
axis2_http_server on port 80 ? If you're trying the default options
(by just typing ./axis2_http_server) the default port is 9090. So you
have to try the URL:
http://localhost:9090/axis2/services/math/add?param1=5&param2=9

-sahan

On 8/6/07, Subra A Narayanan <as...@gmail.com> wrote:
> I am still waiting to hear from you guys as to what you think is causing the
> problem. Any help/pointers is greatly appreciated.
>
>
> ---------- Forwarded message ----------
> From: Subra A Narayanan <as...@gmail.com>
> Date: Aug 3, 2007 9:39 AM
> Subject: Re: Service compilation problem
> To: Apache AXIS C User List < axis-c-user@ws.apache.org>
>
> Hello,
>
> Thanks for all your responses.
>
> Sahan, I am using the same services.xml file that came with the math sample.
>
> Here is what I see
>
> 1. I type in
> http://localhost/axis2/services/math/add?param1=5&param2=9
>
>
> 2. I get a "Page cannot be displayed" error in my web browser
>
> 3. In the log file I see this
>
> [Fri Aug  3 09:10:55 2007] [debug] apache2_worker.c(143)
> Client HTTP version HTTP/1.1
> [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(103) Checking for service
> using target endpoint address :
> /axis2/services/math/add?param1=5&param2=9
> [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(124) Service found using
> target endpoint address
> [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(169) Checking for
> operation using                              target
> endpoint uri fragment : add
> [Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(178) Operation found using
> target endpoint uri fragment
> [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Transport
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> request_uri_based_dispatcher within the phase Transport
> [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase PreDispatch
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> AddressingInHandler within the phase PreDispatch
> [Fri Aug  3 09:10:55 2007] [info]  Starting addressing in handler .........
> [Fri Aug  3 09:10:55 2007] [info]  addr_in_handler.c
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> LoggingInHandler within the phase PreDispatch
> [Fri Aug  3 09:10:55 2007] [info]  Starting logging in handler .........
> [Fri Aug  3 09:10:55 2007] [info]  Input message: <soapenv:Envelope
> xmlns:soapenv="
> http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><add><param1>5</param1><param2>9</param2></add></soapenv:Body></soapenv:Envelope
> >
> [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Dispatch
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> soap_message_body_based_dispatcher within the phase
> Dispatch
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> addressing_based_dispatcher within the phase Dispatch
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> soap_action_based_dispatcher within the phase Dispatch
> [Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase PostDispatch
> [Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
> dispatch_post_conditions_evaluator within the phase
> PostDispatch
> [Fri Aug  3 09:10:55 2007] [debug] phase.c (195) Invoke the handler
> context_handler within the phase PostDispatch
>
>
> As you can see from the above log file, the server just hangs after "Invoke
> the handler context_handler within the phase PostDispatch" step.
>
> I found a similar post in the archive, probably this will give you guys more
> idea as to what is happening.
>
> http://marc.info/?l=axis-c-user&m=118125285316252&w=2
>
> Thanks everyone for ur help. Its greatly appreciated.
>
> Subra
>
>
>
>
>
>
>
> On 8/3/07, Dr. Florian Steinborn <florian.steinborn@drb.insel.de > wrote:
> > Hi,
> >
> > > I see a libmath.so file being generated. But my service doesn't work. I
> >
> > what does it mean, "doesn't work"? Does not work at all, you cannot see an
> > invocation, the service crashes? What about logging?
> >
> > Greeting,
> > Flori
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
>
>

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


Re: Service compilation problem

Posted by Subra A Narayanan <as...@gmail.com>.
I am still waiting to hear from you guys as to what you think is causing the
problem. Any help/pointers is greatly appreciated.

---------- Forwarded message ----------
From: Subra A Narayanan <as...@gmail.com>
Date: Aug 3, 2007 9:39 AM
Subject: Re: Service compilation problem
To: Apache AXIS C User List <ax...@ws.apache.org>

Hello,

Thanks for all your responses.

Sahan, I am using the same services.xml file that came with the math sample.

Here is what I see

1. I type in http://localhost/axis2/services/math/add?param1=5&param2=9

2. I get a "Page cannot be displayed" error in my web browser

3. In the log file I see this

[Fri Aug  3 09:10:55 2007] [debug] apache2_worker.c(143) Client HTTP version
HTTP/1.1
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(103) Checking for service
using target endpoint address : /axis2/services/math/add?param1=5&param2=9
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(124) Service found using
target endpoint address
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(169) Checking for
operation using                              target endpoint uri fragment :
add
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(178) Operation found using
target endpoint uri fragment
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Transport
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
request_uri_based_dispatcher within the phase Transport
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase PreDispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
AddressingInHandler within the phase PreDispatch
[Fri Aug  3 09:10:55 2007] [info]  Starting addressing in handler .........
[Fri Aug  3 09:10:55 2007] [info]  addr_in_handler.c
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
LoggingInHandler within the phase PreDispatch
[Fri Aug  3 09:10:55 2007] [info]  Starting logging in handler .........
[Fri Aug  3 09:10:55 2007] [info]  Input message: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><add><param1>5</param1><param2>9</param2></add></soapenv:Body></soapenv:Envelope
>
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
soap_message_body_based_dispatcher within the phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
addressing_based_dispatcher within the phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
soap_action_based_dispatcher within the phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase PostDispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
dispatch_post_conditions_evaluator within the phase PostDispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c (195) Invoke the handler
context_handler within the phase PostDispatch


As you can see from the above log file, the server just hangs after "Invoke
the handler context_handler within the phase PostDispatch" step.

I found a similar post in the archive, probably this will give you guys more
idea as to what is happening.

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

Thanks everyone for ur help. Its greatly appreciated.

Subra






On 8/3/07, Dr. Florian Steinborn <fl...@drb.insel.de> wrote:
>
> Hi,
>
> > I see a libmath.so file being generated. But my service doesn't work. I
>
> what does it mean, "doesn't work"? Does not work at all, you cannot see an
>
> invocation, the service crashes? What about logging?
>
> Greeting,
> Flori
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Service compilation problem

Posted by Subra A Narayanan <as...@gmail.com>.
Hello,

Thanks for all your responses.

Sahan, I am using the same services.xml file that came with the math sample.

Here is what I see

1. I type in http://localhost/axis2/services/math/add?param1=5&param2=9

2. I get a "Page cannot be displayed" error in my web browser

3. In the log file I see this

[Fri Aug  3 09:10:55 2007] [debug] apache2_worker.c(143) Client HTTP version
HTTP/1.1
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(103) Checking for service
using target endpoint address : /axis2/services/math/add?param1=5&param2=9
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(124) Service found using
target endpoint address
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(169) Checking for
operation using                              target endpoint uri fragment :
add
[Fri Aug  3 09:10:55 2007] [debug] req_uri_disp.c(178) Operation found using
target endpoint uri fragment
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Transport
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
request_uri_based_dispatcher within the phase Transport
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase PreDispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
AddressingInHandler within the phase PreDispatch
[Fri Aug  3 09:10:55 2007] [info]  Starting addressing in handler .........
[Fri Aug  3 09:10:55 2007] [info]  addr_in_handler.c
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
LoggingInHandler within the phase PreDispatch
[Fri Aug  3 09:10:55 2007] [info]  Starting logging in handler .........
[Fri Aug  3 09:10:55 2007] [info]  Input message: <soapenv:Envelope
xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header></soapenv:Header><soapenv:Body><add><param1>5</param1><param2>9</param2></add></soapenv:Body></soapenv:Envelope
>
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
soap_message_body_based_dispatcher within the phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
addressing_based_dispatcher within the phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
soap_action_based_dispatcher within the phase Dispatch
[Fri Aug  3 09:10:55 2007] [debug] engine.c(571) Invoking phase PostDispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
dispatch_post_conditions_evaluator within the phase PostDispatch
[Fri Aug  3 09:10:55 2007] [debug] phase.c(195) Invoke the handler
context_handler within the phase PostDispatch


As you can see from the above log file, the server just hangs after "Invoke
the handler context_handler within the phase PostDispatch" step.

I found a similar post in the archive, probably this will give you guys more
idea as to what is happening.

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

Thanks everyone for ur help. Its greatly appreciated.

Subra






On 8/3/07, Dr. Florian Steinborn <fl...@drb.insel.de> wrote:
>
> Hi,
>
> > I see a libmath.so file being generated. But my service doesn't work. I
>
> what does it mean, "doesn't work"? Does not work at all, you cannot see an
> invocation, the service crashes? What about logging?
>
> Greeting,
> Flori
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Re: Service compilation problem

Posted by "Dr. Florian Steinborn" <fl...@drb.insel.de>.
Hi,

> I see a libmath.so file being generated. But my service doesn't work. I

what does it mean, "doesn't work"? Does not work at all, you cannot see an  
invocation, the service crashes? What about logging?

Greeting,
Flori

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


Re: Service compilation problem

Posted by Sahan Gamage <sa...@gmail.com>.
Hello Subra,

I think you don't need the -laxis2 option in the last command. Also
did you create a proper services.xml file ? For the math service you
can use the services.xml file available with math sample.
If above doesn't work, please send the log file along with the
services.xml file you're using.

Thanks
-sahan

On 8/3/07, Subra A Narayanan <as...@gmail.com> wrote:
> Hello folks,
>
> I am trying to compile the 'math' service from the samples directory without
> using the make file provided with the samples. I used the instructions from
> the Axic2/C manual (
> http://ws.apache.org/axis2/c/docs/axis2c_manual.html)
>
> I used the following commands to compile:
>
> gcc -c -omath.o -I/usr/local/axis2c/include/axis2-1.0/
> -L/usr/local/axis2c/lib -fPIC math.c
> gcc -c -omath_skeleton.o
> -I/usr/local/axis2c/include/axis2-1.0/
> -L/usr/local/axis2c/lib -fPIC math_skeleton.c
> gcc -shared math.o math_skeleton.o -L/usr/local/axis2c/lib -laxis2
> -olibmath.so
>
>
> I see a libmath.so file being generated. But my service doesn't work. I do
> realize that the above commands do not generate the following files which
> are generated if I use the make file:
>
> libmath.a
> libmath.la
> libmath.so.0
> libmath.so.0.0.0
>
>
> What am I doing wrong? I am trying this so that I can compile my own web
> services without having to rely on the make file. I have written my web
> service but I cannot test it as I am stuck at this point.
>
> Any help or pointers in the right direction would be greatly helpful.
>
> TIA
>
> Subra

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


Re: Service compilation problem

Posted by Stefano Pettini <sp...@users.sourceforge.net>.
Hi,

If I'm not wrong, please have a look at the ldd command (on linux). It 
should generate automatically symlinks to dynamic libraries installed in 
the system. But I'm not sure if this is what you need.

Cheers,
Stefano

Subra A Narayanan wrote:
> Hello folks,
>  
> I am trying to compile the 'math' service from the samples directory 
> without using the make file provided with the samples. I used the 
> instructions from the Axic2/C manual ( 
> http://ws.apache.org/axis2/c/docs/axis2c_manual.html)
>  
> I used the following commands to compile:
>  
> gcc -c -omath.o -I/usr/local/axis2c/include/axis2-1.0/ 
> -L/usr/local/axis2c/lib -fPIC math.c
> gcc -c -omath_skeleton.o -I/usr/local/axis2c/include/axis2-1.0/ 
> -L/usr/local/axis2c/lib -fPIC math_skeleton.c
> gcc -shared math.o math_skeleton.o -L/usr/local/axis2c/lib -laxis2 
> -olibmath.so
>  
>  
> I see a libmath.so file being generated. But my service doesn't work. 
> I do realize that the above commands do not generate the following 
> files which are generated if I use the make file:
>  
> libmath.a
> libmath.la <http://libmath.la>
> libmath.so.0
> libmath.so.0.0.0
>  
>  
> What am I doing wrong? I am trying this so that I can compile my own 
> web services without having to rely on the make file. I have written 
> my web service but I cannot test it as I am stuck at this point.
>  
> Any help or pointers in the right direction would be greatly helpful.
>  
> TIA
>  
> Subra


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