CGI-BIN - TOMCAT 4.1.29

2004-08-24 Thread Marek Gimza
Hi,

I would be grateful for some assistance 

I have spent literrally 2 days trying to just a get a PERL or even a shell 
script to run from tomcat !!
I have religously followed the steps to modify the web.xml file, rename 
the servlet-cgi.jar file and restart tomcat .
When running the cgi script from my browser I get the following errors in 
the logfile:


2004-08-23 12:55:12 cgi: findCGI calc: name=hello.pl, 
path=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl, 
scriptname=/cgi-bin/hello.pl, cginame=/hello.pl
2004-08-23 12:55:12 cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 
(compatible; MSIE 6.0; Windows NT 5.1), HTTP_ACCEPT_ENCODING=gzip, 
deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us, 
SERVER_NAME=holy.atl.arrisi.com, SERVER_SOFTWARE=TOMCAT, 
HTTP_HOST=holy.atl.arrisi.com, GATEWAY_INTERFACE=CGI/1.1, 
X_TOMCAT_SCRIPT_PATH=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl, 
REMOTE_ADDR=10.5.30.212, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, 
REMOTE_HOST=lptp-mgimza.client.arrisi.com, QUERY_STRING=, 
HTTP_CONNECTION=Keep-Alive, SERVER_PORT=9090, 
HTTP_COOKIE=JSESSIONID=83357C8CE0FF70F6677A619137FBA3A7, CONTENT_TYPE=, 
CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin/hello.pl, HTTP_ACCEPT=*/*, 
REMOTE_USER=, REMOTE_IDENT=}], 
command=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl)
2004-08-23 12:55:12 cgi: runCGI (stderr):Can't open perl script 
/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl: No such file or 
directory
2004-08-23 12:55:12 cgi: runCGI: 1 lines received on stderr
2004-08-23 13:02:45 cgi: findCGI: path=/test.sh, 
/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
2004-08-23 13:02:45 cgi: findCGI: 
currentLoc=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
2004-08-23 13:02:45 cgi: findCGI: 
currentLoc=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
2004-08-23 13:02:45 cgi: findCGI: FOUND cgi at 
/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh
2004-08-23 13:02:45 cgi: findCGI calc: name=test.sh, 
path=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh, 
scriptname=/cgi-bin/test.sh, cginame=/test.sh

2004-08-23 13:02:45 cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 
(compatible; MSIE 6.0; Windows NT 5.1), HTTP_ACCEPT_ENCODING=gzip, 
deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us, 
SERVER_NAME=holy.atl.arrisi.com, SERVER_SOFTWARE=TOMCAT, 
HTTP_HOST=holy.atl.arrisi.com, GATEWAY_INTERFACE=CGI/1.1, 
X_TOMCAT_SCRIPT_PATH=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh, 
REMOTE_ADDR=10.5.30.212, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, 
REMOTE_HOST=lptp-mgimza.client.arrisi.com, QUERY_STRING=, 
HTTP_CONNECTION=Keep-Alive, SERVER_PORT=9090, 
HTTP_COOKIE=JSESSIONID=83357C8CE0FF70F6677A619137FBA3A7, CONTENT_TYPE=, 
CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin/test.sh, HTTP_ACCEPT=image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, 
application/x-shockwave-flash, */*, REMOTE_USER=, REMOTE_IDENT=}], 
command=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh)
2004-08-23 13:02:45 cgi: runCGI (stderr):Can't open perl script 
/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh: No such file or 
directory
2004-08-23 13:02:45 cgi: runCGI: 1 lines received on stderr


I am sure that I have ommitted something ...

cd /usr/www/tomcat/bin
startup.sh -debug start
Using CATALINA_BASE:   /usr/www/tomcat
Using CATALINA_HOME:   /usr/www/tomcat
Using CATALINA_TMPDIR: /usr/www/tomcat/temp
Using JAVA_HOME:   /usr/j2se


Somehow tomcat cannot find the path to the cgi script  !! 


Kind Regards,
Marek Gimza 


RE: CGI-BIN - TOMCAT 4.1.29

2004-08-24 Thread Mark Thomas
What is the content of the perl script?

Mark 

 -Original Message-
 From: Marek Gimza [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 24, 2004 6:43 PM
 To: Tomcat Users List
 Subject: CGI-BIN - TOMCAT 4.1.29
 
 Hi,
 
 I would be grateful for some assistance 
 
 I have spent literrally 2 days trying to just a get a PERL or 
 even a shell 
 script to run from tomcat !!
 I have religously followed the steps to modify the web.xml 
 file, rename 
 the servlet-cgi.jar file and restart tomcat .
 When running the cgi script from my browser I get the 
 following errors in 
 the logfile:
 
 
 2004-08-23 12:55:12 cgi: findCGI calc: name=hello.pl, 
 path=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl, 
 scriptname=/cgi-bin/hello.pl, cginame=/hello.pl
 2004-08-23 12:55:12 cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 
 (compatible; MSIE 6.0; Windows NT 5.1), HTTP_ACCEPT_ENCODING=gzip, 
 deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us, 
 SERVER_NAME=holy.atl.arrisi.com, SERVER_SOFTWARE=TOMCAT, 
 HTTP_HOST=holy.atl.arrisi.com, GATEWAY_INTERFACE=CGI/1.1, 
 X_TOMCAT_SCRIPT_PATH=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/
 hello.pl, 
 REMOTE_ADDR=10.5.30.212, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, 
 REMOTE_HOST=lptp-mgimza.client.arrisi.com, QUERY_STRING=, 
 HTTP_CONNECTION=Keep-Alive, SERVER_PORT=9090, 
 HTTP_COOKIE=JSESSIONID=83357C8CE0FF70F6677A619137FBA3A7, 
 CONTENT_TYPE=, 
 CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin/hello.pl, HTTP_ACCEPT=*/*, 
 REMOTE_USER=, REMOTE_IDENT=}], 
 command=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl)
 2004-08-23 12:55:12 cgi: runCGI (stderr):Can't open perl script 
 /usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/hello.pl: No 
 such file or 
 directory
 2004-08-23 12:55:12 cgi: runCGI: 1 lines received on stderr
 2004-08-23 13:02:45 cgi: findCGI: path=/test.sh, 
 /usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
 2004-08-23 13:02:45 cgi: findCGI: 
 currentLoc=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
 2004-08-23 13:02:45 cgi: findCGI: 
 currentLoc=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi
 2004-08-23 13:02:45 cgi: findCGI: FOUND cgi at 
 /usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh
 2004-08-23 13:02:45 cgi: findCGI calc: name=test.sh, 
 path=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh, 
 scriptname=/cgi-bin/test.sh, cginame=/test.sh
 
 2004-08-23 13:02:45 cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 
 (compatible; MSIE 6.0; Windows NT 5.1), HTTP_ACCEPT_ENCODING=gzip, 
 deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us, 
 SERVER_NAME=holy.atl.arrisi.com, SERVER_SOFTWARE=TOMCAT, 
 HTTP_HOST=holy.atl.arrisi.com, GATEWAY_INTERFACE=CGI/1.1, 
 X_TOMCAT_SCRIPT_PATH=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/
 test.sh, 
 REMOTE_ADDR=10.5.30.212, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, 
 REMOTE_HOST=lptp-mgimza.client.arrisi.com, QUERY_STRING=, 
 HTTP_CONNECTION=Keep-Alive, SERVER_PORT=9090, 
 HTTP_COOKIE=JSESSIONID=83357C8CE0FF70F6677A619137FBA3A7, 
 CONTENT_TYPE=, 
 CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin/test.sh, HTTP_ACCEPT=image/gif, 
 image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, 
 application/vnd.ms-powerpoint, application/msword, 
 application/x-shockwave-flash, */*, REMOTE_USER=, REMOTE_IDENT=}], 
 command=/usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh)
 2004-08-23 13:02:45 cgi: runCGI (stderr):Can't open perl script 
 /usr/www/tomcat/webapps/ROOT/WEB-INF/cgi/test.sh: No such file or 
 directory
 2004-08-23 13:02:45 cgi: runCGI: 1 lines received on stderr
 
 
 I am sure that I have ommitted something ...
 
 cd /usr/www/tomcat/bin
 startup.sh -debug start
 Using CATALINA_BASE:   /usr/www/tomcat
 Using CATALINA_HOME:   /usr/www/tomcat
 Using CATALINA_TMPDIR: /usr/www/tomcat/temp
 Using JAVA_HOME:   /usr/j2se
 
 
 Somehow tomcat cannot find the path to the cgi script  !! 
 
 
 Kind Regards,
 Marek Gimza 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5 and cgi-bin

2004-04-24 Thread zhicheng wang
thanks Mark

suppose that i can use more than one app? such as 

init-param
  param-nameexecutable/param-name
  param-valueXXXapp/param-value
/init-param

init-param
  param-nameexecutable/param-name
  param-valueYYYapp/param-value
init-param

?

cheng




 --- Mark Thomas [EMAIL PROTECTED] wrote:  Prior to
5.0.17, the cgi executable was hardcoded to
 perl. From 5.0.17 onwards
 this is configurable. For example, if you wanted to
 use XXXapp as the perl
 executable, edit conf/web.xml to look something
 this:
 
 servlet
 servlet-namecgi/servlet-name


servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
 init-param
  
 param-nameclientInputTimeout/param-name
   param-value100/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value6/param-value
 /init-param
 init-param
   param-namecgiPathPrefix/param-name
   param-valueWEB-INF/cgi/param-value
 /init-param
 init-param
   param-nameexecutable/param-name
   param-valueXXXapp/param-value
 /init-param
 load-on-startup5/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-namecgi/servlet-name
 url-pattern/cgi-bin/*/url-pattern
 /servlet-mapping
 
 Alternatively you can put this in the web.xml for
 you web app. Note that XXXapp
 must be on your path.
 
 Mark
 
  From: zhicheng wang [mailto:[EMAIL PROTECTED] 
 
  i am trying to upgrade our server to t5, but the
  cgi-bin now only allows perl programs to be
 executed
  (by default). for compiled c or c++ etc, how do i
  modify the web.xml?
 
  

=
Best wishes
Z C Wang






Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5 and cgi-bin

2004-04-24 Thread Mark Thomas
You can't do this within the same web application. You should be able to do this
if you have a separate web application for each CGI executable. You will have to
configure the cgi servlet differently in each web application.

Mark

 -Original Message-
 From: zhicheng wang [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, April 24, 2004 10:09 AM
 To: [EMAIL PROTECTED]
 Subject: RE: tomcat 5 and cgi-bin
 
 thanks Mark
 
 suppose that i can use more than one app? such as 
 
 init-param
   param-nameexecutable/param-name
   param-valueXXXapp/param-value
 /init-param
 
 init-param
   param-nameexecutable/param-name
   param-valueYYYapp/param-value
 init-param
 
 ?
 
 cheng
 
 
 
 
  --- Mark Thomas [EMAIL PROTECTED] wrote:  Prior to
 5.0.17, the cgi executable was hardcoded to
  perl. From 5.0.17 onwards
  this is configurable. For example, if you wanted to
  use XXXapp as the perl
  executable, edit conf/web.xml to look something
  this:
  
  servlet
  servlet-namecgi/servlet-name
 
 
 servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
  init-param
   
  param-nameclientInputTimeout/param-name
param-value100/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value6/param-value
  /init-param
  init-param
param-namecgiPathPrefix/param-name
param-valueWEB-INF/cgi/param-value
  /init-param
  init-param
param-nameexecutable/param-name
param-valueXXXapp/param-value
  /init-param
  load-on-startup5/load-on-startup
  /servlet
  
  servlet-mapping
  servlet-namecgi/servlet-name
  url-pattern/cgi-bin/*/url-pattern
  /servlet-mapping
  
  Alternatively you can put this in the web.xml for
  you web app. Note that XXXapp
  must be on your path.
  
  Mark
  
   From: zhicheng wang [mailto:[EMAIL PROTECTED] 
  
   i am trying to upgrade our server to t5, but the
   cgi-bin now only allows perl programs to be
  executed
   (by default). for compiled c or c++ etc, how do i
   modify the web.xml?
  
   
 
 =
 Best wishes
 Z C Wang
 
 
   
   
   
 
 Yahoo! Messenger - Communicate instantly...Ping 
 your friends today! Download Messenger Now 
 http://uk.messenger.yahoo.com/download/index.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat 5 and cgi-bin

2004-04-23 Thread zhicheng wang
dear all

i am trying to upgrade our server to t5, but the
cgi-bin now only allows perl programs to be executed
(by default). for compiled c or c++ etc, how do i
modify the web.xml?

many thanks
cheng

=
Best wishes
Z C Wang






Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5 and cgi-bin

2004-04-23 Thread Mark Thomas
Prior to 5.0.17, the cgi executable was hardcoded to perl. From 5.0.17 onwards
this is configurable. For example, if you wanted to use XXXapp as the perl
executable, edit conf/web.xml to look something this:

servlet
servlet-namecgi/servlet-name
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
init-param
  param-nameexecutable/param-name
  param-valueXXXapp/param-value
/init-param
load-on-startup5/load-on-startup
/servlet

servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping

Alternatively you can put this in the web.xml for you web app. Note that XXXapp
must be on your path.

Mark

 From: zhicheng wang [mailto:[EMAIL PROTECTED] 

 i am trying to upgrade our server to t5, but the
 cgi-bin now only allows perl programs to be executed
 (by default). for compiled c or c++ etc, how do i
 modify the web.xml?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cgi-bin

2004-03-05 Thread Shapira, Yoav

Hi,

- Root Cause -
java.lang.ClassNotFoundException:
org.apache.catalina.servlets.CGIServlet
snip/
I have servlets-cgi.jar in \jsp_files\WEB-INF\lib
snip/

Did you try the setup recommended in the CGI HOWTO?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cgi-bin

2004-03-04 Thread Shapira, Yoav

Hi,
What are the startup errors in your log that lead to the CHI servlet
marked as unavailable?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of George Hester
Sent: Wednesday, March 03, 2004 5:19 PM
To: [EMAIL PROTECTED]
Subject: Re: cgi-bin

OK.  servlets-cgi.jar is in \WEB-INF\lib.  This is in the web.xml and
only
this:

servlet
servlet-namecgi/servlet-name

servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-
class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/load-on-startup
/servlet

!-- The mapping for the CGI Gateway servlet --

servlet-mapping
servlet-namecgi/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-namecgi/servlet-name
  servlet-
classorg.apache.catalina.servlets.CGIServlet/servlet-class
  init-param
param-nameclientInputTimeout/param-name
param-value100/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value6/param-value
  /init-param
  init-param
param-namecgiPathPrefix/param-name
param-valueWEB-INF/cgi/param-value
  /init-param
   load-on-startup5/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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cgi-bin

2004-03-04 Thread George Hester
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 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 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-namecgi/servlet-name
  
 servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
   init-param
 param-nameclientInputTimeout/param-name
 param-value100/param-value
   /init-param
   init-param
 param-namedebug/param-name
 param-value6/param-value
   /init-param
   init-param
 param-namecgiPathPrefix/param-name
 param-valueWEB-INF/cgi/param-value
   /init-param
load-on-startup5/load-on-startup
   /servlet
  
   !-- The mapping for the CGI Gateway servlet --
  
   servlet-mapping
   servlet-namecgi/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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cgi-bin

2004-03-04 Thread George Hester
Mmmm

2004-03-04 19:58:49 StandardManager[/jsp_files]: Seeding random number generator class 
java.security.SecureRandom
2004-03-04 19:58:49 StandardManager[/jsp_files]: Seeding of random number generator 
has been completed
2004-03-04 19:58:50 StandardWrapper[/jsp_files:default]: Loading container servlet 
default
2004-03-04 19:58:50 StandardWrapper[/jsp_files:invoker]: Loading container servlet 
invoker
2004-03-04 19:58:50 StandardWrapper[/jsp_files:ssi]: Loading container servlet ssi
2004-03-04 19:58:50 StandardWrapper[/jsp_files:cgi]: Loading container servlet cgi
2004-03-04 19:58:50 StandardWrapper[/jsp_files:cgi]: Marking servlet cgi as unavailable
2004-03-04 19:58:50 StandardContext[/jsp_files]: Servlet /jsp_files threw load() 
exception
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.catalina.servlets.CGIServlet or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
- Root Cause -
java.lang.ClassNotFoundException: org.apache.catalina.servlets.CGIServlet
 at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
 at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)

I have servlets-cgi.jar in \jsp_files\WEB-INF\lib  I also have in 
\jsp_files\WEB-INF\classes this jar in the correct structure.  Why it cannot find this 
jar is beyond me.  In \jsp_files\WEB-INF\web.xml I have:

servlet
servlet-namecgi/servlet-name
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/load-on-startup
/servlet

servlet-mapping
servlet-namecgi/servlet-name
url-pattern/jsp_files/cgi-bin/*/url-pattern
/servlet-mapping

If servlets-cgi.jar depends on another jar that I do not have in my lib folder then 
the documentation is lacking for I found nothing more to do other then what I did.  
Thanks.

-- 
George Hester
__
Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Hi,
What are the startup

Re: cgi-bin

2004-03-03 Thread Tim Funk
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-namecgi/servlet-name
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/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]


Re: cgi-bin

2004-03-03 Thread George Hester
OK.  servlets-cgi.jar is in \WEB-INF\lib.  This is in the web.xml and only this:

servlet
servlet-namecgi/servlet-name
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/load-on-startup
/servlet

!-- The mapping for the CGI Gateway servlet --

servlet-mapping
servlet-namecgi/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-namecgi/servlet-name
  servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
  init-param
param-nameclientInputTimeout/param-name
param-value100/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value6/param-value
  /init-param
  init-param
param-namecgiPathPrefix/param-name
param-valueWEB-INF/cgi/param-value
  /init-param
   load-on-startup5/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]



Re: cgi-bin

2004-03-03 Thread Tim Funk
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-namecgi/servlet-name
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/load-on-startup
/servlet
!-- The mapping for the CGI Gateway servlet --

servlet-mapping
servlet-namecgi/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: cgi-bin

2004-03-03 Thread Jean-Luc Duval
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 [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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-namecgi/servlet-name
 
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
  init-param
param-nameclientInputTimeout/param-name
param-value100/param-value
  /init-param
  init-param
param-namedebug/param-name
param-value6/param-value
  /init-param
  init-param
param-namecgiPathPrefix/param-name
param-valueWEB-INF/cgi/param-value
  /init-param
   load-on-startup5/load-on-startup
  /servlet
 
  !-- The mapping for the CGI Gateway servlet --
 
  servlet-mapping
  servlet-namecgi/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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cgi-bin

2004-03-02 Thread George Hester
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-namecgi/servlet-name
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cgi-bin

2003-02-28 Thread Kaps Stefan
hello!
i need a cgi-bin directory and enabled cgi in the web.xml and renamed a
file. should this create a new directory when restarting (not on my
server...)?
need help for this problem!

Thanks!!
stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cgi-bin

2003-02-28 Thread Reynir Hübner
You need to create a new directory named cgi-bin (or something else if you 
configured web.xml to use something else) under your WEB-INF/ directory of the webapp.

Then you can put your cgi scripts in to that directory, and run from command line.

Hope it helps
-reynir


 -Original Message-
 From: Kaps Stefan [mailto:[EMAIL PROTECTED] 
 Sent: 28. febrúar 2003 13:18
 To: [EMAIL PROTECTED]
 Subject: cgi-bin
 
 
 hello!
 i need a cgi-bin directory and enabled cgi in the web.xml and 
 renamed a file. should this create a new directory when 
 restarting (not on my server...)? need help for this problem!
 
 Thanks!!
 stefan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cgi-bin on Tomcat

2003-02-23 Thread Kaps Stefan
Hello!
 Where is the directory (cgi-bin on Apache) where i can put my executables
(an executable file for a mapserver for example) in it? Is it the root
directory? It doesn't work...

Cheers
Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Having multiple cgi-bin locations

2003-01-18 Thread Red Hat
 
I want to control CGI usage at the webapp level, that is, I want a
cgi-bin for some applications but not others. I do not want one central
cgi-bin location. Can the CGI servlet context be placed in the
WEB-INF/web.xml section of specific web applications, thus only enabling
it for that application?
 
Ie: Suppose the following directory layout:
 
webapps/ROOT
webapps/changemgmt/cgi-bin(these scripts would be executed
/changemgmt/cgi/bin/script-name
webapps/assetmgmt/
webapps/dba/cgi-bin (these scripts would be executed as
/dba/cgi-bin/script-name
 
Thx,CC
 
Chuck Carson
Sr. Systems Engineer
Syrrx, Inc.
10410 Science Center Drive
San Diego, CA 92121
Work: 858.731.3540
Cell: 858.442.1791
 
 
 

-- 
This message contains confidential information and is intended only for the individual 
named. If you are not the named addressee you should not disseminate, distribute or 
copy this e-mail. Please notify the sender immediately by e-mail if you have received 
this e-mail by mistake and delete this e-mail from your system. E-mail transmission 
cannot be guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender 
therefore does not accept liability for any errors or omissions in the contents of 
this message, which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version. 
 



Re: cgi-bin

2002-05-03 Thread James Williamson

It all depends what Tomcat/Apache connector you're
using, by default you can't stop requests being redirected
to Tomcat using mod_webapp, although you can with jk.

Regards, 

James Williamson
www.nameonthe.net
UK Tomcat Hosting

- Original Message - 
From: Ken Anderson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, May 03, 2002 12:26 AM
Subject: Re: cgi-bin


 kidding?
 um... rewrite them as servlets, or reinstall apache.
 Ken
 
 
 Oki DZ wrote:
  Hi,
  
  I replaced Apache with Tomcat; problem is, what should I do so that 
  these cgi scripts could get executed...?
  
  Thanks in advance,
  Oki
  
  -- 
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
  
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: cgi-bin

2002-05-03 Thread August Detlefsen

Implement the CGIServlet. 

In $CATALINA_HOME/conf/web.xml, uncomment: 

  servlet
servlet-namecgi/servlet-name
   
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-nameclientInputTimeout/param-name
  param-value100/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
 load-on-startup5/load-on-startup
   /servlet

There are configuration comments in web.xml for how to set the params. 

One caveat: The CGIServlet only works with GET requests, not POST.

-August



--- James Williamson [EMAIL PROTECTED] wrote:
 It all depends what Tomcat/Apache connector you're
 using, by default you can't stop requests being redirected
 to Tomcat using mod_webapp, although you can with jk.
 
 Regards, 
 
 James Williamson
 www.nameonthe.net
 UK Tomcat Hosting
 
 - Original Message - 
 From: Ken Anderson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, May 03, 2002 12:26 AM
 Subject: Re: cgi-bin
 
 
  kidding?
  um... rewrite them as servlets, or reinstall apache.
  Ken
  
  
  Oki DZ wrote:
   Hi,
   
   I replaced Apache with Tomcat; problem is, what should I do so
 that 
   these cgi scripts could get executed...?
   
   Thanks in advance,
   Oki
   
   -- 
   To unsubscribe:  
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
   
   
   
  
  
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: cgi-bin

2002-05-02 Thread Ken Anderson

kidding?
um... rewrite them as servlets, or reinstall apache.
Ken


Oki DZ wrote:
 Hi,
 
 I replaced Apache with Tomcat; problem is, what should I do so that 
 these cgi scripts could get executed...?
 
 Thanks in advance,
 Oki
 
 -- 
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




cgi-bin

2002-05-01 Thread Oki DZ

Hi,

I replaced Apache with Tomcat; problem is, what should I do so that these cgi 
scripts could get executed...?

Thanks in advance,
Oki

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




cgi-bin and tomcat4

2002-01-07 Thread Thor Tall

Hi,

I would like to be able to run a few old C cgi
programs together with my servlets, but I can not find
any documentation on how to configure a cgi-bin
directory under tomcat4.

Could you please point me to the doc. or tell me how I
can configure tomcat4 to handle cgi programs.

Thanks a lot,
Thor.


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: cgi-bin and tomcat4

2002-01-07 Thread huangzh

Hi :
 why not try the Apache server ?Tomcat is the Java Container and can run as part 
of Apache .

- Original Message - 
From: Thor Tall [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 4:50 PM
Subject: cgi-bin and tomcat4


 Hi,
 
 I would like to be able to run a few old C cgi
 programs together with my servlets, but I can not find
 any documentation on how to configure a cgi-bin
 directory under tomcat4.
 
 Could you please point me to the doc. or tell me how I
 can configure tomcat4 to handle cgi programs.
 
 Thanks a lot,
 Thor.
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



cgi-bin

2001-08-08 Thread Christoph Rooms

hi,

Can anyone point me to a help page, or give some more information on how I
can execute a perl script in a standalone Tomcat 4 setup ?

Thanks,

Christoph




Re: cgi-bin

2000-12-07 Thread Craig R. McClanahan

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



cgi-bin

2000-12-05 Thread Pierre Roy



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

2000-12-05 Thread CPC Livelink Admin


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:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 09:24 AM
To: [EMAIL PROTECTED]
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" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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