RE: HELP Tomcat CGI

2005-04-12 Thread zhicheng wang
hi,

first you need to test if the script will be happy to
execute: leave it where you want it to be called from
the browser and in shell to type
/path/to/script/test.pl

if it execute, then you know it is your tomcat config
problem. you may need to restart tomcat after change
the .xml file(?)

there is security concern about using cgi, does not
matter with tomcat or apache. but as you know tomcat
can run perl.

good luck

cheng

--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:
 Why don't you run perl in apache and integrate it
 with tomcat ?
 Tomcat should not be used with CGI ( security issues
 ) 
 
 Guru
 
 -Original Message-
 From: Scholtyssek Siegfried
 [mailto:[EMAIL PROTECTED] 
 Sent: 11 April 2005 09:29
 To: tomcat-user@jakarta.apache.org
 Subject: HELP Tomcat CGI
 Importance: High
 
 
  Hello,
  
  I use the Apache Tomcat.5.0.16 on the SUNOS 5.8  
 UNIX
  
  With Tomcat we want execute cgi-scripts. So I
 modified all in web.xml
  and removed the file servlets-cgi.renametojar to
 servlets-cgi.jar
  If I start with Netscape the follow URL:
  http://localhost:8080/cgi-bin/test.pl   so I get
 the follow ERROR:
  
  Can't open perl Script ./test.pl No such
 file or direktory
  Use -S to search $PATH for it.   
  
  If I delete and make a follow link:
  
  rm /usr/bin/perl
  
  ln -s /usr/bin/ksh  /usr/bin/perlthen it is
 running.
  
  Whats wrong ??? What I have to do, that it is
 running with ln -s
  /usr/local/bin/perl  /usr/bin/perl 
  
  In the first line of the test.pl I have still
 #!/usr/local/bin/perl
  and I made chmod a+x test.pl and with command from
 xterm I can execute
  it with the full path from the errormessage Can't
 open perl Script
  .  !
  
  Please help me because I will be else crazy
 :-)
  
  Thanks and regards
  
  Siggi
  
  
 

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

Best wishes
Z C Wang

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



HELP Tomcat CGI

2005-04-11 Thread Scholtyssek Siegfried
 Hello,
 
 I use the Apache Tomcat.5.0.16 on the SUNOS 5.8   UNIX
 
 With Tomcat we want execute cgi-scripts. So I modified all in web.xml
 and removed the file servlets-cgi.renametojar to servlets-cgi.jar
 If I start with Netscape the follow URL:
 http://localhost:8080/cgi-bin/test.pl   so I get the follow ERROR:
 
 Can't open perl Script ./test.pl No such file or direktory
 Use -S to search $PATH for it.   
 
 If I delete and make a follow link:
 
 rm /usr/bin/perl
 
 ln -s /usr/bin/ksh  /usr/bin/perlthen it is running.
 
 Whats wrong ??? What I have to do, that it is running with ln -s
 /usr/local/bin/perl  /usr/bin/perl 
 
 In the first line of the test.pl I have still #!/usr/local/bin/perl
 and I made chmod a+x test.pl and with command from xterm I can execute
 it with the full path from the errormessage Can't open perl Script
 .  !
 
 Please help me because I will be else crazy :-)
 
 Thanks and regards
 
 Siggi
 
 


RE: HELP Tomcat CGI

2005-04-11 Thread Raghupathy,Gurumoorthy
Why don't you run perl in apache and integrate it with tomcat ?
Tomcat should not be used with CGI ( security issues ) 

Guru

-Original Message-
From: Scholtyssek Siegfried [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 09:29
To: tomcat-user@jakarta.apache.org
Subject: HELP Tomcat CGI
Importance: High


 Hello,
 
 I use the Apache Tomcat.5.0.16 on the SUNOS 5.8   UNIX
 
 With Tomcat we want execute cgi-scripts. So I modified all in web.xml
 and removed the file servlets-cgi.renametojar to servlets-cgi.jar
 If I start with Netscape the follow URL:
 http://localhost:8080/cgi-bin/test.pl   so I get the follow ERROR:
 
 Can't open perl Script ./test.pl No such file or direktory
 Use -S to search $PATH for it.   
 
 If I delete and make a follow link:
 
 rm /usr/bin/perl
 
 ln -s /usr/bin/ksh  /usr/bin/perlthen it is running.
 
 Whats wrong ??? What I have to do, that it is running with ln -s
 /usr/local/bin/perl  /usr/bin/perl 
 
 In the first line of the test.pl I have still #!/usr/local/bin/perl
 and I made chmod a+x test.pl and with command from xterm I can execute
 it with the full path from the errormessage Can't open perl Script
 .  !
 
 Please help me because I will be else crazy :-)
 
 Thanks and regards
 
 Siggi
 
 

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



Re: HELP Tomcat CGI

2005-04-11 Thread Mark Thomas
Should not is rather strong and a little misleading.
What you need to keep in mind is the warning in the docs.
quote
CAUTION - CGI scripts are used to execute programs external to the 
Tomcat JVM. If you are using the Java SecurityManager this will bypass 
your security policy configuration in catalina.policy.
/quote

Mark
Raghupathy,Gurumoorthy wrote:
Why don't you run perl in apache and integrate it with tomcat ?
Tomcat should not be used with CGI ( security issues ) 

Guru
-Original Message-
From: Scholtyssek Siegfried [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 09:29
To: tomcat-user@jakarta.apache.org
Subject: HELP Tomcat CGI
Importance: High


Hello,
I use the Apache Tomcat.5.0.16 on the SUNOS 5.8   UNIX
With Tomcat we want execute cgi-scripts. So I modified all in web.xml
and removed the file servlets-cgi.renametojar to servlets-cgi.jar
If I start with Netscape the follow URL:
http://localhost:8080/cgi-bin/test.pl   so I get the follow ERROR:
Can't open perl Script ./test.pl No such file or direktory
Use -S to search $PATH for it.   

If I delete and make a follow link:
rm /usr/bin/perl
ln -s /usr/bin/ksh  /usr/bin/perlthen it is running.
Whats wrong ??? What I have to do, that it is running with ln -s
/usr/local/bin/perl  /usr/bin/perl 

In the first line of the test.pl I have still #!/usr/local/bin/perl
and I made chmod a+x test.pl and with command from xterm I can execute
it with the full path from the errormessage Can't open perl Script
.  !
Please help me because I will be else crazy :-)
Thanks and regards
Siggi


-
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]