Hi there,
I am having trouble executing a perl script through tomcat by hitting a URL.

THis is what I've done so far:
1. Followed all the necessary instructions to setup CGI via
${CATALINA_HOME}/conf/web.xml
    Did the following:
     >Renamed $CATALINA_HOME/server/lib/servlets-cgi.renametojar file
to $CATALINA_HOME/server/lib/servlets-cgi.jar
     >I've the following cgi config:
    <servlet>
        <servlet-name>cgi</servlet-name>
        <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>cgiPathPrefix</param-name>
          <param-value>WEB-INF/cgi</param-value>
        </init-param>
        <init-param>
          <param-name>passShellenvironment</param-name>
          <param-value>true</param-value>
        </init-param>
        <load-on-startup>5</load-on-startup>
    </servlet>
<!-- The mapping for the CGI Gateway servlet -->
    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi/*</url-pattern>
    </servlet-mapping>
     >I left the web.xml in ${CATALINA_HOME}/webapps/ROOT/WEB-INF as it is.
2. cd ${CATALINA_HOME}/webapps/ROOT/WEB-INF
3. mkdir cgi
4. cd cgi; web_xml_mon.pl and the configs are in this directory
5. ${CATALINA_HOME}/bin/shutdown.sh; ${CATALINA_HOME}/bin/startup.sh
6. Trying to hit the URL like this -
http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1

I get:
--------------------------
HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl
type Status report
message /WEB-INF/cgi/web_xml_mon.pl
description The requested resource (/WEB-INF/cgi/web_xml_mon.pl) is
not available.

Apache Tomcat/4.1.37-LE-jdk1.4
--------------------------

Any thoughts?

Thanks,

-- 
Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425)
301-1948 | F: (425) 256-2819

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to