Subject: Help Getting CGI to work on Tomcat 4.0.4 I cannot get a cgi script to work. I am running Win2000, my install is at D:\java\jakarta-tomcat-4.0.4 and the demo apps work as well as other JSP stuff I have done lately.
%CATALINA_HOME% is D:\java\jakarta-tomcat-4.0.4 I have placed a CGI application at %CATALINA_HOME%\webapps\STOCKPHOTOGRAPHY\WEB-INF\cgi I have renamed %CATALINA_HOME%/server/lib/servlets-cgi.renametojar --to-- %CATALINA_HOME%/server/lib/servlets-cgi.jar I have found and un-commented the "Common Gateway Includes (CGI) processing servlet..." block in the file %CATALINA_HOME%\conf\web.xml and even placed that block (only that block) in %CATALINA_HOME%\webapps\STOCKPHOTOGRAPHY\WEB-INF\web.xml I restarted Tomcat and tried both http://localhost:8080/STOCKPHOTOGRAPHY/cgi-bin/myProg.cgi as well as http://localhost:8080/STOCKPHOTOGRAPHY/cgi-bin/index.html The requested resource (/STOCKPHOTOGRAPHY/cgi-bin/myProg.cgi) is not available. The requested resource (/STOCKPHOTOGRAPHY/cgi-bin/index.html) is not available. I can find no other documentation that tells me what I can do in addition to what I have done. Can Anyone suggest what I need to do? Anyone had success with this? Thanks, -forrest [EMAIL PROTECTED] ===================================================== PS: Here is the actual text of the CGI block for each web.xml FILE: %CATALINA_HOME%\conf\web.xml FILE: %CATALINA_HOME%\webapps\STOCKPHOTOGRAPHY\WEB-INF\web.xml ...etc... <!-- Common Gateway Includes (CGI) processing servlet, ... ..etc ... --> <servlet> <servlet-name>cgi</servlet-name> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> <init-param> <param-name>clientInputTimeout</param-name> <param-value>100</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>6</param-value> </init-param> <init-param> <param-name>cgiPathPrefix</param-name> <param-value>WEB-INF/cgi</param-value> </init-param> <load-on-startup>5</load-on-startup> </servlet> END OF ps. ============================================= -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
