Thanks everyone, Did as suggested and that works fine suggesting that the CGI bit is okay and it's something wrong in my webapp. I'll post another question.
Cheers, Steve. -----Original Message----- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: 11 February 2005 15:32 To: Tomcat Users List Subject: Re: Enabling CGI 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
