Hello folks, I want to use an external library in my Axis2/C webservice. I library is a shared library (.so file). In my webservice's init method, I call the initialization function of my library and in the free method I my library's free function to free up resources.
Then I compile my service and place .so file in the axis2c/services/myservice folder. When I try accessing my webservice i get the following error in my axis2.log file ..................................................................... ..................................................................... [Tue Aug 28 09:58:17 2007] [info] addr_in_handler.c [Tue Aug 28 09:58:17 2007] [debug] phase.c(195) Invoke the handler addressing_based_dispatcher within the phase Transport [Tue Aug 28 09:58:17 2007] [debug] engine.c(577) Invoking phase PreDispatch [Tue Aug 28 09:58:17 2007] [debug] phase.c(195) Invoke the handler LoggingInHandler within the phase PreDispatch [Tue Aug 28 09:58:17 2007] [info] Starting logging in handler ......... [Tue Aug 28 09:58:17 2007] [info] Input message: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><maui:CreateObject xmlns:maui="http://www.emc.com/2007/07/maui/"><maui:PrincipalID>45</maui:PrincipalID><maui:Signature>checksum</maui:Signature><maui:Timestamp>Tue Aug 28 09:58:11 2007</maui:Timestamp><maui:ACL>OBJECT:READ:Group=PUBLIC</maui:ACL><maui:UserMetadata><maui:Name>userid</maui:Name><maui:Value>aswats</maui:Value></maui:UserMetadata><maui:ObjectID> GoogleWifi.jpg</maui:ObjectID><maui:Object><xop:Include href="cid: [EMAIL PROTECTED]" xmlns:xop=" http://www.w3.org/2004/08/xop/include "/></maui:Object></maui:CreateObject></soapenv:Body></soapenv:Envelope> [Tue Aug 28 09:58:17 2007] [debug] engine.c(577) Invoking phase Dispatch [Tue Aug 28 09:58:17 2007] [debug] phase.c(195) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch [Tue Aug 28 09:58:17 2007] [debug] soap_body_disp.c(217) Checking for operation using SOAP message body's first child's local name : CreateObject [Tue Aug 28 09:58:17 2007] [debug] soap_body_disp.c(226) Operation found using SOAP message body's first child's local name [Tue Aug 28 09:58:17 2007] [debug] engine.c(577) Invoking phase PostDispatch [Tue Aug 28 09:58:17 2007] [debug] phase.c(195) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch [Tue Aug 28 09:58:17 2007] [debug] phase.c(195) Invoke the handler context_handler within the phase PostDispatch [Tue Aug 28 09:58:17 2007] [debug] engine.c(587) End:axis2_engine_invoke_phases [Tue Aug 28 09:58:17 2007] [debug] engine.c(564) Start:axis2_engine_invoke_phases [Tue Aug 28 09:58:17 2007] [debug] engine.c(587) End:axis2_engine_invoke_phases **[Tue Aug 28 09:58:17 2007] [error] raw_xml_in_out_msg_recv.c(109) Impl object for service 'object' not set in message receiver. 100 :: Failed in creating DLL** [Tue Aug 28 09:58:17 2007] [debug] engine.c(292) Axis2 engine receive completed! [Tue Aug 28 09:58:17 2007] [debug] engine.c(564) Start:axis2_engine_invoke_phases [Tue Aug 28 09:58:17 2007] [debug] engine.c(577) Invoking phase MessageOut [Tue Aug 28 09:58:17 2007] [debug] engine.c(587) End:axis2_engine_invoke_phases Please see the error generated in the raw_xml_in_out_msg_recv.c(109) file. Why am I getting this error? Is it because axis2/C cannot find my library file? If yes, how should I solve this problem? Thanks for any help! Subra
