My only addition is take a look at the logs. The CGI servlet is set by
default to a log level of 6 which shows a lot of diagnostic info. I
found it very useful when I set mine up as a test last night.
--David
Hassan Schroeder wrote:
Kelly, Steve wrote:
Has anyone out there got CGI scripts running from a tomcat webapp. If
so, I'll carry on my investigations. If not, I might just give up !
Yes. I'm baffled by the apparent problems with this. Since I needed
to update a dev server anyway, I /just now/:
1) downloaded and installed TC 5.5.7
2) uncommented the CGI servlet and servlet-mapping entries in
$CATALINA_HOME/conf/web.xml
3) renamed the $CATALINA_HOME/server/lib/servlets-cgi.renametojar
to servlets-cgi.jar
4) added a ROOT.xml file to $CATALINA_HOME/conf/Catalina/localhost
(pointing to an existing context)
5) added a "cgi" directory under WEB-INF in that context.
6) added the `printenv` test cgi from an Apache httpd install
7) started TC, using the default server.xml
8) entered http://example:8080/cgi-bin/printenv in browser --
RESULT: listing of environment variables as expected
It really couldn't be much simpler, unless it were configured for
CGI by default :-)
HTH!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]