Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 65055 invoked from network); 6 Sep 2005 10:05:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 10:05:09 -0000 Received: (qmail 95661 invoked by uid 500); 6 Sep 2005 10:04:50 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 95614 invoked by uid 500); 6 Sep 2005 10:04:49 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 95588 invoked by uid 99); 6 Sep 2005 10:04:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 03:04:49 -0700 X-ASF-Spam-Status: No, hits=-3.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_BSP_TRUSTED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kontrolle@ebay.de designates 66.135.197.23 as permitted sender) Received: from [66.135.197.23] (HELO mx43.sjc.ebay.com) (66.135.197.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 03:04:59 -0700 Received: from smf-klm-02.corp.ebay.com (smf-klm-02.corp.ebay.com [10.108.116.101]) by mx43.sjc.ebay.com (8.12.3/8.12.3) with ESMTP id j86A4iZd006862; Tue, 6 Sep 2005 03:04:44 -0700 Received: from [10.244.21.70] (HELO usa-keuae-003.corp.ebay.com) by smf-klm-02.corp.ebay.com (CommuniGate Pro SMTP 4.1.5) with SMTP id 83615180; Tue, 06 Sep 2005 03:04:43 -0700 Date: Tue, 06 Sep 2005 03:04:43 -0700 To: Tomcat Users List Subject: Re: how tomcat not run .EXE as CGI (KMM147972V1081L0KM) From: eBay Deutschland Customer Support Reply-To: eBay Deutschland Customer Support MIME-Version: 1.0 Content-Type: text/plain; charset = "us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: KANA Response 7.0.1.142 Message-ID: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hallo, leider koennen wir den genauen Sachverhalt Ihres Anliegens nicht nachvollziehen. Bitte schildern Sie uns Ihr Anliegen noch etwas ausfuehrlicher, damit wir Ihnen weiterhelfen koennen. Unser Tipp: Nennen Sie bei Ihren Anfragen auch immer Ihren Mitgliedsnamen, die der = Beteiligten und die Artikelnummer, zu der Sie eine Frage haben. Fuer Ihre Bemuehungen bedanken wir uns recht herzlich. Mit freundlichen Gruessen Anton Kaiser eBay Customer Support eBay - Der weltweite Online-Marktplatz! ********************************************************** ********************************************************** Bei Fragen per E-Mail nutzen Sie bitte unser Kontaktformular: http://pages.ebay.de/help/contact_inline/index.html Bitte nennen Sie uns bei Ihren Anfragen auch immer Ihren = Mitgliedsnamen und die der Beteiligten, oder die Artikelnummer, zu der Sie eine Frage = haben. Vielen Dank. ********************************************************** Nutzen Sie die Moeglichkeit, mit anderen Mitgliedern in den eBay-Diskussionsforen in Kontakt zu treten! Teilen Sie Ihre = Erkenntnisse und Erfahrungen! http://pages.ebay.de/community/chat/index.html ********************************************************** Original Message Follows: ------------------------- gjl wrote: > Thanks very much to read my question. > I have tomcat5.0 for Win32 installed locally on > Windows 2k, SP4. I'm trying to run a namazu.cgi.exe (a Full-Text Search > Engine. that's not Perl scripts ,but a binary file) . > the file is in Tomcat 5.0\webapps\XXX\WEB-INF\cgi ,and I set the web.xml > file as follow > cgi > > = org.apache.catalina.servlets.CGIServlet > > clientInputTimeout > 100 > > > debug > 6 > > > cgiPathPrefix > WEB-INF/cgi > > 5 > > > cgi > /cgi-bin/* > > > However, any reference to one of the .EXE in the > http://localhost:8080/jsp-examples/cgi-bin/namazu.cgi.exe directory results > in the browser trying to download the EXE. and I got the message "2005-09-06 > 10:07:25 StandardContext[/jsp-examples]cgi: runCGI (stderr):Unrecognized > character \x90 at \Tomcat > 5.0\webapps\jsp-examples\WEB-INF\cgi\namazu.cgi.exe line 1." in = logs. > how can I set the tomcat to run the .exe? With 5.0.x: You can't use the CGI servlet. You would need to write your own servlet that wraps the .exe using java.lang.Runtime.exec()= http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s hare/org/apache/catalina/servlets/CGIServlet.java?view=3Dmarkup should provide some pointers on how to wrap exec() (search the source for "exec" and remember that most of the CGIServlet is unnecessary for what you want to do. With 5.5.x: You *might* have some luck setting the new executable init parameter. I would try "" or "cmd". --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org