in reply to Not able to run CGI scripts on Tomcat 7.0.26

Look at $TOMCAT_HOME/logs/catalina.out and you will probably see some messages that better explain your predicament.

Also (agreeing with ww): I dont think HTML and a cgi script belong in the same directory. See config instructions at http://karlsangabriel.com/2011/03/15/cgi-with-tomcat-7/.

             When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren

  • Comment on Re: Not able to run CGI scripts on Tomcat 7.0.26

Replies are listed 'Best First'.
Re^2: Not able to run CGI scripts on Tomcat 7.0.26
by neelesh86 (Initiate) on Dec 27, 2013 at 23:48 UTC
    Hi , i have tried the info from the CGI 101 tutorials and have updated my scratchpad with latest script and configuration details. The HTML runs fine but the cgi script is not invoked. I have set 755 permissions on the scripts.Getting the below error message on the browser. HTTP Status 404 - Servlet cgi is not available
      That is the same error you started with ;;; the cause is the same, your tomcat doesn't have "servlet cgi" whatever that is (its not perl related, its tomcat related, specifically some kind of java program its looking for that it cannot find) ;;; meaning, you're still dealing with same issue, either install the missing java class, or update your java classpath to find it, or something else