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!
--
Hassan Schroeder ----------------------------- [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to