OK. servlets-cgi.jar is in \WEB-INF\lib. This is in the web.xml and only this:
<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>
<!-- The mapping for the CGI Gateway servlet -->
<servlet-mapping>
<servlet-name>cgi</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping>
This is the test http://localhost/jsp_files/cgi-bin/up.cgi
This is the result:
HTTP Status 503 - Servlet cgi is currently unavailable
--------------------------------------------------------------------------------
type Status report
message Servlet cgi is currently unavailable
description The requested service (Servlet cgi is currently unavailable) is not
currently available.
--------------------------------------------------------------------------------
Apache Tomcat/4.1.30
Any other suggestions? Thanks.
--
George Hester
__________________________________
"Tim Funk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> You have the servlet declaration but you are missing the servlet mapping.
>
> See conf/web.xml for an example/
>
> -Tim
>
> George Hester wrote:
>
> > In my webapp in /WEB-INF/lib I put servlets-cgi.jar. I then added just this to
> > the web.xml in \WEB-INF
> >
> > <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>
> >
> > Then I made a \cgi-bin folder and put a cgi file in there I know works over the
> > web. Call it test.cgi. I then tried
> >
> > http://localhost/jsp-files/cgi-bin/test.cgi
> >
> > C\Inetpub\jsp-files
> >
> > The reuslt was the cgi code returned as a text file. What did I do wrong? Can I
> > get this to work? ActiveState Perl is installed in C:\Perl. Is there a test
> > different than what I have done to see if what I set up works? Thanks.
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]