Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CF8DEF09 for ; Thu, 17 Jan 2013 17:56:05 +0000 (UTC) Received: (qmail 32659 invoked by uid 500); 17 Jan 2013 17:56:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32596 invoked by uid 500); 17 Jan 2013 17:56:01 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32587 invoked by uid 99); 17 Jan 2013 17:56:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 17:56:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.24] (HELO qmta02.westchester.pa.mail.comcast.net) (76.96.62.24) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 17:55:52 +0000 Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87]) by qmta02.westchester.pa.mail.comcast.net with comcast id p0R11k0081swQuc515vWWT; Thu, 17 Jan 2013 17:55:30 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta15.westchester.pa.mail.comcast.net with comcast id p5vW1k00838FjT13b5vWbX; Thu, 17 Jan 2013 17:55:30 +0000 Message-ID: <50F83B11.1060309@christopherschultz.net> Date: Thu, 17 Jan 2013 12:55:29 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Question about config and correct start-up References: <50F37307.5070506@ronan.net> <50F380E4.1080002@ronan.net> <50F3B41C.2080309@apache.org> <50F46ABA.2060901@ronan.net> <50F73627.10306@ronan.net> <99C8B2929B39C24493377AC7A121E21FC49B172C0D@USEA-EXCH8.na.uis.unisys.com> <50F78178.7040309@ronan.net> In-Reply-To: <50F78178.7040309@ronan.net> X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1358445330; bh=OcG5oQKq1uDr1/b74hZHiOwv1j3s8zFlBme5fAl5h4Q=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=CYj8UzHqc/AkuCvBH4cBLhmFvG+2DreeTYm3ufNoodmEf8S1fZqfHQoEYPuG0YARc 7pjIGaPuVW6NsH4lI79k6oqjuDGdVFWpl1+t3k6kEVXpOPNHo0OexPC+qKuqkAghbp WV2g3QrBPjZLkw5Priu9X4ixh/YBX/v8uj4sKyNk5znLC6Rm0v2ao3nnLZnA538mi3 kYfbMIDe2lG5Y0rsEs+djy/zGwe6Q4ddcDzoPsXpvIOPfiK3PTpjSz3FeCKyLbgBRY Uvgq2LazVv2Osnhbvw+Flx1pgXz37lWO0s5AvIUofBc2jyyPeXs+Ar6CVKWfhufWZj FMrZzSritc2OA== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Alan, On 1/16/13 11:43 PM, Alan Findly wrote: > The recommended context "ELEMENT" caused the following warning: > > Jan 16, 2013 9:10:37 AM org.apache.tomcat.util.digester.Digester > endElement WARNING: No rules found matching 'Context/Context'. That error suggests that you have something like: ... If you are modifying your configuration trying to get something to work, don't just say "I did it and it still doesn't work". Re-post your current configuration. *sigh* > So I changed the "ELEMENT" to this --as below-- and voila ..... the > warning went away. Below ... where? > My thread seems out of context(no pun intended) because I made the > unwarranted assumption that the original thread would be included > in every reply & comment.....as it should be....otherwise I have > to re-iterate the problem, ie. thread...every time. Or you could use a threaded mail-reader. Anyhow, top-posting is discouraged. You can feel free to ignore that advice but you will irritate many of the folks on this list (myself included) who may see your refusal to help us help you as annoying enough to ignore your questions. YMMV. > The problem I'm trying to solve is making tomcat do cgi, and the > Apache.tomcat documentation says to do basically 3 tasks: (1) > Uncomment the cgi servlet in the conf/web.xm file. Right. It seems you have done that. > (2) In same file uncomment the cgi servlet mapping. That, too. > (3) Add the context "ELEMENT" to the context.xml file. No, it says that your context needs to be marked as "privileged". The way to do that is to add privileged="true" to your element which should have already been in your WEB-INF/context.xml file. If you didn't have such a file, you'll need to create one that looks like this: You may wish to have other configuration in there as well -- only you know your own webapp's requirements. Please exercise due diligence when merging the above configuration into your own: don't simply copy/paste that onto the end of whatever you had there already. > So, now, as already covered in the previous parts of this > problem's thread, the cgi functionality is still not working--at > least not for perl--cgi files, which are all I've tested since this > is my focus. As per the documentation[1], "perl" is the default. If you expect that the URL always contains the full script name and the scripts are directly executable (not likely on WinXP), you can change that. Also note that if perl.exe isn't in the PATH for the Tomcat user, you may have to set the full path in the "executable" init-param of the CGI servlet. > Question; do I need a Tomcat/lib/servlet-cgi.jar file? No, you do not. > Previous versions did -- well, version 5. I am working with > version 7.0.34 and there is no such jar file in the downloaded tar. > Now the servlet in conf/web.xml could be "it" instead of a jar > file. It sounds like you have no idea what you are talking about. Rest assured, Tomcat includes the CGI servlet and you don't need to mess-around with any JAR files. You are only configuring it in conf/web.xml. > However, what has me questioning -- there is also an api servlet in > conf/web.xml--as well as a lib/servlet-api.jar file. No, there isn't an "api servlet" in conf/web.xml. The letters "api" do not appear in conf/web.xml. The servlet-api.jar file exists to provide ... the servlet API classes to the whole container. > I'm thinking now that the REAL problem is Windows XP.....always > been a dog....I think it has something missing to purposely lock > out cgi. I'm thinking i should just throw it away & migrate to a > Linux box. While that may be good advice in general, WinXP is not intentionally thwarting your attempts to get CGIs running. Everything you are doing here will need to be done on Linux, too (except that there you can actually have executable scripts which simplifies one small part of the configuration). If things still aren't working, please re-post all current, relevant parts of your configuration: don't expect anyone to go back through the list of messages applying verbal diffs to things to guess at what your files look like. Also, be specific. If you say "it doesn't work" say what you expected and what actually happened. Also look for anything relevant in log files: they can tell you a lot and we're going to ask, anyway, so just save us all some time and check them first. If they are empty, say they are empty (and say which files you looked at). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlD4OxEACgkQ9CaO5/Lv0PAxMACgiw/1MXcTRMf7NfTBXM8sdy1I XlYAoKd6UN8hJ9pD8NDE4bAb+gP5zTRe =b6F7 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org