You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pierre Roy <pr...@itw.fr> on 2000/12/05 11:48:50 UTC

cgi-bin

Hi there,

I'm running Tomcat on Windows 2000.  When I try to load http://localhost:8080/cgi-bin I get a "page not found message" from my browser.  Could someone tell me where I should put my .exe files, and how I should configure Tomcat to find them?

Thanks in advance,
Pierre

Re: cgi-bin

Posted by William Brogden <wb...@bga.com>.

Pierre Roy wrote:
> 
> I have installed a Web search engine (namely Subject Search Server v1.1).
> This software directs search requests to
> http://localhost:8080/cgi-bin/SSServer.exe
> Therefore there is no .class nor .jsp file to be accessed !
> 

If I understand you correctly, you want to be able to access
that SSServer.exe program functions from a servlet or JSP.
The way to do that is with the exec method in the java.lang.Runtime
class. This method lets you set up environment parameters
and streams to simulate the way CGI processes work.

-- 
WBB - wbrogden@bga.com
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Re: cgi-bin

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Pierre Roy wrote:

> Yes, I thought one could handle cgi-bin with Tomcat. Apparently I can either
> install Apache or call my .exe files from a servlet.
>

You've got it right.  Note that if your .exe program expects to be called as a
CGI script, you will need to set the environment variables defined by the CGI
specification prior to invoking the program.  This means you'll be doing about
80% of a general purpose servlet to support CGI scripts in Tomcat stand-alone.

If anyone wants to write and contribute a such a servlet that supports CGI
scripts, I would be happy to include it in the standard Tomcat distribution.

>
> Thank you all for helpful information.
> Pierre
>

Craig McClanahan

Re: cgi-bin

Posted by Pierre Roy <pr...@itw.fr>.
Yes, I thought one could handle cgi-bin with Tomcat. Apparently I can either
install Apache or call my .exe files from a servlet.

Thank you all for helpful information.
Pierre

----- Original Message -----
From: "Peter Choe" <ch...@mindspring.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, December 05, 2000 3:55 PM
Subject: Re: cgi-bin


> tomcat is a servlet engine designed to handle java servlets.
>
> which are class files basically.  as far as i know, tomcat looks for the
> servlets in a specific directory, and basically handles .jsp files and
> .class files.
>
> perhaps you are looking for something else besides tomcat.
>
> Pierre Roy wrote:
> >
> > I have installed a Web search engine (namely Subject Search Server
v1.1).
> > This software directs search requests to
> > http://localhost:8080/cgi-bin/SSServer.exe
> > Therefore there is no .class nor .jsp file to be accessed !
> >
> > ----- Original Message -----
> > From: "Peter Choe" <ch...@mindspring.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Tuesday, December 05, 2000 3:11 PM
> > Subject: Re: cgi-bin
> >
> > > you don't put the .exe files anywhere.  you would put the .class files
> > > or the .jsp files in tomcat/webapps/your_application_directory
> > >
> > > > Pierre Roy wrote:
> > > >
> > > > Hi there,
> > > >
> > > > I'm running Tomcat on Windows 2000.  When I try to load
> > > > http://localhost:8080/cgi-bin I get a "page not found message" from
my
> > > > browser.  Could someone tell me where I should put my .exe files,
and
> > > > how I should configure Tomcat to find them?
> > > >
> > > > Thanks in advance,
> > > > Pierre


Re: cgi-bin

Posted by Peter Choe <ch...@mindspring.com>.
tomcat is a servlet engine designed to handle java servlets.

which are class files basically.  as far as i know, tomcat looks for the
servlets in a specific directory, and basically handles .jsp files and
.class files.

perhaps you are looking for something else besides tomcat.

Pierre Roy wrote:
> 
> I have installed a Web search engine (namely Subject Search Server v1.1).
> This software directs search requests to
> http://localhost:8080/cgi-bin/SSServer.exe
> Therefore there is no .class nor .jsp file to be accessed !
> 
> ----- Original Message -----
> From: "Peter Choe" <ch...@mindspring.com>
> To: <to...@jakarta.apache.org>
> Sent: Tuesday, December 05, 2000 3:11 PM
> Subject: Re: cgi-bin
> 
> > you don't put the .exe files anywhere.  you would put the .class files
> > or the .jsp files in tomcat/webapps/your_application_directory
> >
> > > Pierre Roy wrote:
> > >
> > > Hi there,
> > >
> > > I'm running Tomcat on Windows 2000.  When I try to load
> > > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > > browser.  Could someone tell me where I should put my .exe files, and
> > > how I should configure Tomcat to find them?
> > >
> > > Thanks in advance,
> > > Pierre

RE: cgi-bin

Posted by CPC Livelink Admin <cp...@fitzpatrick.cc>.
As has been mentioned earlier on this list, Tomcat does not have any CGI
capabilities.  This could, however, be implemented in a servlet.  A general
call went out to see if anyone was interested in writing one, but I did not
see any takers.

To implement what you want to work, you will need to place tomcat behind
another web server like apache or iis.  Then you can use them to do your
cgi, and tomcat to handle your servlets.

Regards,
Paul


-----Original Message-----
From: Pierre Roy [mailto:proy@itw.fr]
Sent: Tuesday, December 05, 2000 09:24 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: cgi-bin


I have installed a Web search engine (namely Subject Search Server v1.1).
This software directs search requests to
http://localhost:8080/cgi-bin/SSServer.exe
Therefore there is no .class nor .jsp file to be accessed !

----- Original Message -----
From: "Peter Choe" <ch...@mindspring.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, December 05, 2000 3:11 PM
Subject: Re: cgi-bin


> you don't put the .exe files anywhere.  you would put the .class files
> or the .jsp files in tomcat/webapps/your_application_directory
>
> > Pierre Roy wrote:
> >
> > Hi there,
> >
> > I'm running Tomcat on Windows 2000.  When I try to load
> > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > browser.  Could someone tell me where I should put my .exe files, and
> > how I should configure Tomcat to find them?
> >
> > Thanks in advance,
> > Pierre



Re: cgi-bin

Posted by Pierre Roy <pr...@itw.fr>.
I have installed a Web search engine (namely Subject Search Server v1.1).
This software directs search requests to
http://localhost:8080/cgi-bin/SSServer.exe
Therefore there is no .class nor .jsp file to be accessed !

----- Original Message -----
From: "Peter Choe" <ch...@mindspring.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, December 05, 2000 3:11 PM
Subject: Re: cgi-bin


> you don't put the .exe files anywhere.  you would put the .class files
> or the .jsp files in tomcat/webapps/your_application_directory
>
> > Pierre Roy wrote:
> >
> > Hi there,
> >
> > I'm running Tomcat on Windows 2000.  When I try to load
> > http://localhost:8080/cgi-bin I get a "page not found message" from my
> > browser.  Could someone tell me where I should put my .exe files, and
> > how I should configure Tomcat to find them?
> >
> > Thanks in advance,
> > Pierre


Re: cgi-bin

Posted by Peter Choe <ch...@mindspring.com>.
you don't put the .exe files anywhere.  you would put the .class files
or the .jsp files in tomcat/webapps/your_application_directory

> Pierre Roy wrote:
> 
> Hi there,
> 
> I'm running Tomcat on Windows 2000.  When I try to load
> http://localhost:8080/cgi-bin I get a "page not found message" from my
> browser.  Could someone tell me where I should put my .exe files, and
> how I should configure Tomcat to find them?
> 
> Thanks in advance,
> Pierre