You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by George Hester <he...@hotmail.com> on 2004/03/03 01:15:19 UTC
cgi-bin
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.
--
George Hester
__________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: cgi-bin
Posted by George Hester <he...@hotmail.com>.
Yes Jean trouble is I cannot do that. See I have a cgi-bin that is off the root of my Microsoft Internet Information Server. So I cannot allow Tomcat to grab http://localhost/cgi-bin which is what will happen if I use the cgi-bin under Apache Group. Tomcat doesn't have the cgi-bin in its uriworkermap.properties. If it did it would grab the cgi-bin I use with IIS.
So I tried setting up a cgi-bin off a webapp I had made and is shown in the link I gave. Can it be done in this fashion? Thanks.
--
George Hester
__________________________________
"Jean-Luc Duval" <jl...@videotron.ca> wrote in message news:007d01c401a0$ecc14220$f9788342@jld...
> remove the jsp_file from the URL, it`s not in your cgi config
> <url-pattern>/cgi-bin/*</url-pattern> then it seems it must look like
>
> http://localhost/cgi-bin/up.cgi
>
> JLD
>
> ----- Original Message -----
> From: "Tim Funk" <fu...@joedog.org>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, March 03, 2004 8:05 PM
> Subject: Re: cgi-bin
>
>
> > Hmm. I am out of ideas (i don't use the cgi mod), hopefully catalina.out
> or
> > the other logs have something insightful.
> >
> > -Tim
> >
> > George Hester wrote:
> > > 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.
> > >
> > >
> >
> > --------------------------------------------------------------------------
> ------
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: cgi-bin
Posted by Jean-Luc Duval <jl...@videotron.ca>.
remove the jsp_file from the URL, it`s not in your cgi config
<url-pattern>/cgi-bin/*</url-pattern> then it seems it must look like
http://localhost/cgi-bin/up.cgi
JLD
----- Original Message -----
From: "Tim Funk" <fu...@joedog.org>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, March 03, 2004 8:05 PM
Subject: Re: cgi-bin
> Hmm. I am out of ideas (i don't use the cgi mod), hopefully catalina.out
or
> the other logs have something insightful.
>
> -Tim
>
> George Hester wrote:
> > 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.
> >
> >
>
> --------------------------------------------------------------------------
------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: cgi-bin
Posted by Tim Funk <fu...@joedog.org>.
Hmm. I am out of ideas (i don't use the cgi mod), hopefully catalina.out or
the other logs have something insightful.
-Tim
George Hester wrote:
> 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.
>
>
> --------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: cgi-bin
Posted by George Hester <he...@hotmail.com>.
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" <fu...@joedog.org> wrote in message news:4045CFDA.5070600@joedog.org...
> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: cgi-bin
Posted by Tim Funk <fu...@joedog.org>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org