Re: [AXIS2C]: How to implement business logic in C++?
Hi Dumindu, After several tries, I found out the segmentation error is because I updated the libhello.so file but didn't restart the axis2_http_server. It is not a permission issue. Thanks. Yingwei On 6/11/07, Dumindu Pallewela <[EMAIL PROTECTED]> wrote: Yingwei Yang wrote: > Hi Dinesh, > > Thank you very much for the reply. I just realized that I didn't run the > axis2_http_server with the correct permission, which caused the error I > mentioned above. and no log files been written because of the lack of > permission. Hi Yang and Dinesh, I don't think that the axis2_http_server should seg fault on a permissions issue. When I try to run the server without write permissions for log file, it instead is written to the standard output. I guess that this _might_ possibly be a bug. If you could please provide more details on how the seg fault could be recreated. -Dumindu. > Now it runs fine. :) > Thanks. > > On 6/11/07, *Dinesh Premalal* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi Yingwei, > > "Yingwei Yang" <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> writes: > > then I got the Segmentation fault at the "Invoke the handler > context_handler > > within the phase PostDispatch" phase. > > > > what did I do wrong? is it possible to implement the service > skeleton code in > > C++? > > I think it is possible, in order to determine what has happened in > your case we need some more details. > > 1. Are you sure about your service.xml ? What is the directory name > that you use to put your service? > > 2. Can you provide us your axis2.log , Please make sure to run server > in debug mode. > > 3. It would be great if you could send us gdb backtrace. > > thanks, > Dinesh > -- > Dinesh Premalal > http://xydinesh.wordpress.com > GPG ID : A255955C > GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 266E A255 > 955C > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > > > > -- > Yingwei Yang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yingwei Yang
Re: [AXIS2C]: How to implement business logic in C++?
Hi Dinesh, Thank you very much for the reply. I just realized that I didn't run the axis2_http_server with the correct permission, which caused the error I mentioned above. and no log files been written because of the lack of permission. Now it runs fine. :) Thanks. On 6/11/07, Dinesh Premalal <[EMAIL PROTECTED]> wrote: Hi Yingwei, "Yingwei Yang" <[EMAIL PROTECTED]> writes: > then I got the Segmentation fault at the "Invoke the handler context_handler > within the phase PostDispatch" phase. > > what did I do wrong? is it possible to implement the service skeleton code in > C++? I think it is possible, in order to determine what has happened in your case we need some more details. 1. Are you sure about your service.xml ? What is the directory name that you use to put your service? 2. Can you provide us your axis2.log , Please make sure to run server in debug mode. 3. It would be great if you could send us gdb backtrace. thanks, Dinesh -- Dinesh Premalal http://xydinesh.wordpress.com GPG ID : A255955C GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 266E A255 955C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Yingwei Yang
[AXIS2C]: How to implement business logic in C++?
Hi Group, Because all my business logics are implemented in C++, so I am trying to implement the hello_svc.c in C++. Here is what I did: 1. Added the explicit cast to cast void* to axis2_svc_skeleton_t* axis2_svc_skeleton_t *svc_skeleton = NULL; svc_skeleton = (axis2_svc_skeleton_t *)AXIS2_MALLOC(env->allocator, sizeof(axis2_svc_skeleton_t)); 2. Added the #ifdef __cplusplus extern "C" { #endif and #ifdef __cplusplus } #endif at the beginning and the end of the hello_svc.cpp file. 3. compile it using g++ (with the same argument as with gcc) 4. copy the libhello.so to the axis2c hello service. 5. Invoide the hello client then I got the Segmentation fault at the "Invoke the handler context_handler within the phase PostDispatch" phase. what did I do wrong? is it possible to implement the service skeleton code in C++? Thanks!!! -- Yingwei Yang