Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 9539 invoked from network); 2 Nov 2007 09:26:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2007 09:26:05 -0000 Received: (qmail 60391 invoked by uid 500); 2 Nov 2007 09:25:52 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 60383 invoked by uid 500); 2 Nov 2007 09:25:52 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 60372 invoked by uid 99); 2 Nov 2007 09:25:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2007 02:25:52 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jf.grezes@progexia.net designates 213.186.37.103 as permitted sender) Received: from [213.186.37.103] (HELO 25.mail-out.ovh.net) (213.186.37.103) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 Nov 2007 09:26:12 +0000 Received: (qmail 18940 invoked by uid 503); 2 Nov 2007 09:25:53 -0000 Received: (QMFILT: 1.0); 02 Nov 2007 09:25:53 -0000 Received: from unknown (HELO mail83.ha.ovh.net) (213.186.33.59) by 25.mail-out.ovh.net with SMTP; 2 Nov 2007 09:25:53 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 2 Nov 2007 09:25:24 -0000 Received: from 82.229.51.84 (SquirrelMail authenticated user jf.grezes@progexia.net); by ssl0.ovh.net with HTTP; Fri, 2 Nov 2007 10:25:24 +0100 (CET) Message-ID: <2512.82.229.51.84.1193995524.squirrel@82.229.51.84> In-Reply-To: <87zlxz6v9f.fsf@etch.wso2.com> References: <302290.81976.qm@web30602.mail.mud.yahoo.com> <4728B5D2.1000402@progexia.net> <87zlxz6v9f.fsf@etch.wso2.com> Date: Fri, 2 Nov 2007 10:25:24 +0100 (CET) Subject: Re: Invoking system method within a webservice From: jf.grezes@progexia.net To: "Apache AXIS C User List" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org I'd like to do that... but can you explain me how I can debug a web service running on apache ? Thanks, Jef > Jef, > > Could you please recheck the entry that you made to httpd.conf , And > if possible please send us axis2 log file. > > Please run it with gdb, and try to pinpoint the place where error > occurs. > > > thanks, > Dinesh > Jef Grezes writes: > >> Suavi Ali Demir wrote: >>> Do the user permissions matter? Does the process making the system >>> request have required permissions? If thats the problem, and if you >>> are using windows, in the thread you are making the request, you can >>> logon as a different user, then make the thread impersonate that >>> user, do the call, then restore old user. i forgot the details, but >>> i remember doing something like this in iis. >>> Regards, >>> Ali >>> >> Why not. Unfortunately (or fortunately who knows), i'm running apache >> on Linux (Ubuntu). I checked all the permissions and everything should >> work. >> As a test, i tried to execute something like system("echo hello > >> /tmp/test.txt") and it also didn't work (but still running superb with >> axis2_http_server). >> I tried almost everything I knew possible ... I'm running out of >> inspiration. >> >> Thanks for your attention. >> Jef >> >>> >>> */Jef Grezes /* wrote: >>> >>> Royston Day wrote: >>> > Hi Jef, >>> > >>> > >>> >> Hi there, >>> >> >>> > >>> > >>> >> I developed a web service which invokes a system("") during its >>> >> execution. >>> >> Trying my webservice with axis_http_server works fine ... >>> >> When I try my webservice with apache and axis2_mod, the system >>> call fails. >>> >> >>> > >>> > >>> >> Can you help me with this ? >>> >> >>> > >>> > Have you set-up the httpd.conf file appropriately? >>> > >>> > Are you using the correct path && port when sending a request >>> from the >>> > service client (when using apache)? >>> > >>> > Regards, >>> > >>> > Royston >>> > >>> Thanks for your quick answer. >>> In fact, I'm sure my webservice is called since I left some traces >>> (that >>> are logged in a file). >>> The only problem is that the call to system("whatever") does not >>> work >>> (ie not resulting in a core dump >>> or whatever .. it just don't return 0). >>> >>> So to answer accurately to your question : yes, everything in >>> apache is >>> well configured (the axis2c samples works fine also). >>> >>> Regards, >>> >>> Jef >>> begin:vcard >>> fn;quoted-printable:Jean-Fran=C3=A7ois Grezes >>> n;quoted-printable:Grezes;Jean-Fran=C3=A7ois >>> email;internet:jf.grezes@progexia.net >>> version:2.1 >>> end:vcard >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org >>> For additional commands, e-mail: axis-c-user-help@ws.apache.org >>> >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam protection around >>> http://mail.yahoo.com >>> >> >> >> -- >> ------------------------------------------------------------------------ >> *Progexia* >> 23, rue de la république >> 13002 Marseille - FRANCE >> >> Téléphone : 04 91 91 73 21 >> web : http://www.progexia.net >> >> ------------------------------------------------------------------------ >> / >> >> "Ce courriel et les documents qui y sont attachés peuvent contenir des >> informations confidentielles. Si vous n'êtes pas le destinataire >> escompté, merci d'en informer l'expéditeur immédiatement et de >> détruire ce courriel ainsi que tous les documents attachés de votre >> système informatique. Toute divulgation, distribution ou copie du >> présent courriel et des documents attachés sans autorisation >> préalable >> de son émetteur est interdite." >> >> "This e-mail and any attached documents may contain confidential or >> proprietary information. If you are not the intended recipient, please >> advise the sender immediately and delete this e-mail and all attached >> documents from your computer system. Any unauthorised disclosure, >> distribution or copying hereof is prohibited." >> >> / >> >> --------------------------------------------------------------------- >> 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org