Cgis

2002-10-10 Thread Pablo_Saez_Nunez

 Hello everybody, i´m a newbie in tomcat and i could understand hardly
everything, but i have a doubt. How can i make tomcat to serve CGI´s. I´ve
read the HOW TO, but dont get it. I´m using the tomcat server under
Windows, and trying to execute an .exe file compiled and linked under
windows in windows. But when i try to acces it, only opens a dialog box
asking me if i want to execute or download. So, tomcat doesn´t realices
that is a CGi.

 I have changed the .renameto and deleted the comments in the .xml. I
place the CGi in a subfolder called cgi_bin, and put it as the mapping and
the base (that is WEB_INF/cgi at the begining).

 PLEASE, can anybody help me. I know Apache would be a better server,
but its not for serious use, so im trying to do it with Tomcat. THANKS

 please answers to: [EMAIL PROTECTED]
[EMAIL PROTECTED]

 Thanks


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




Re: Problem invoking CGIs that are EXE files

2002-10-08 Thread Jason Young

As I mentioned before, I am able to get the CGI to execute merely by 
changing the file extension to something more unix-friendly (.exe -- 
.sh). Sorry, I have not tried includes to know if it works consistently 
or not.

--jason

Stephan Orme wrote:

I posted something on this earlier - can you get *any* cgi to work when it's
included?

Here's my previous post:

I'm using Tomcat 4.0.3 to serve dynamic and static pages. I can get includes
to work and I can get CGI's to work but I can't get included CGI's to work.
you can pick your friends, you can pick your nose...
Anyway, here's what works:

includes on .html pages:
!--#include virtual=Shared/footer--

includes on .jsp pages:
%@ include file=Shared/footer %

CGI that works:
http://localhost/PCW/cgi-bin/test-cgi

And here's what DOESN'T work (this is on a .html page)
!--#include virtual=/cgi-bin/test-cgi--
!--#include virtual=/PCW/cgi-bin/test-cgi--
!--#include virtual=../../WEB-INF/cgi/test-cgi--

My Tomcat config file is completely standard - I uncommented the SSI and CGI
bits and renamed the appropriate .jar files but there are no other config
changes. Since both CGI's and includes work my assumption here is that the
SSI servlet doesn't call the CGI servlet. In other words when I call the CGI
from the URL it gets handled by the CGI servlet, and when I include it it
gets handled by the SSI servlet but what I need is for the SSI servlet to
call the CGI servlet which it doesn't do.


  

It doesn't appear that any file extensions are checked by the CGI
servlet, and I cannot find any code that explicitly 'allows' or 'denies'
certain file extensions.

As far as I can tell, the request for /cgi-bin/whatever.exe is not
being handled by the CGIServlet at all. When CGIServlet is invoked, it
tries to find the cgi file, and prints logs so you can tell this is
happening. A request for an .exe file does not cause this log to get
printed. So this tells me that the request is never getting sent to the
CGIServlet, even though it matches the /cgi-bin/* pattern, which the
CGIServlet is supposed to handle.

--jason


Turner, John wrote:



.exe may not be explicitly excluded as an extension, but are other file
extensions explicitly included?  Like .sh, .pl, .cgi?

John

 

  

-Original Message-
From: Jason Young [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 11:00 AM
To: [EMAIL PROTECTED]
Subject: Problem invoking CGIs that are EXE files


   



...snip...

 

  

Are there just some file extensions that Tomcat will not try
to execute? 
I looked at the source code, and couldn't find any reference
to .exe 
files that would exclude them from execution...

Thanks for any help or insight into this matter!

Jason Young




  



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




Re: Problem invoking CGIs that are EXE files

2002-10-05 Thread Stephan Orme

I posted something on this earlier - can you get *any* cgi to work when it's
included?

Here's my previous post:

I'm using Tomcat 4.0.3 to serve dynamic and static pages. I can get includes
to work and I can get CGI's to work but I can't get included CGI's to work.
you can pick your friends, you can pick your nose...
Anyway, here's what works:

includes on .html pages:
!--#include virtual=Shared/footer--

includes on .jsp pages:
%@ include file=Shared/footer %

CGI that works:
http://localhost/PCW/cgi-bin/test-cgi

And here's what DOESN'T work (this is on a .html page)
!--#include virtual=/cgi-bin/test-cgi--
!--#include virtual=/PCW/cgi-bin/test-cgi--
!--#include virtual=../../WEB-INF/cgi/test-cgi--

My Tomcat config file is completely standard - I uncommented the SSI and CGI
bits and renamed the appropriate .jar files but there are no other config
changes. Since both CGI's and includes work my assumption here is that the
SSI servlet doesn't call the CGI servlet. In other words when I call the CGI
from the URL it gets handled by the CGI servlet, and when I include it it
gets handled by the SSI servlet but what I need is for the SSI servlet to
call the CGI servlet which it doesn't do.


 It doesn't appear that any file extensions are checked by the CGI
 servlet, and I cannot find any code that explicitly 'allows' or 'denies'
 certain file extensions.
 
 As far as I can tell, the request for /cgi-bin/whatever.exe is not
 being handled by the CGIServlet at all. When CGIServlet is invoked, it
 tries to find the cgi file, and prints logs so you can tell this is
 happening. A request for an .exe file does not cause this log to get
 printed. So this tells me that the request is never getting sent to the
 CGIServlet, even though it matches the /cgi-bin/* pattern, which the
 CGIServlet is supposed to handle.
 
 --jason
 
 
 Turner, John wrote:
 
 .exe may not be explicitly excluded as an extension, but are other file
 extensions explicitly included?  Like .sh, .pl, .cgi?
 
 John
 
  
 
 -Original Message-
 From: Jason Young [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 11:00 AM
 To: [EMAIL PROTECTED]
 Subject: Problem invoking CGIs that are EXE files
 
 

 
 
 ...snip...
 
  
 
 Are there just some file extensions that Tomcat will not try
 to execute? 
 I looked at the source code, and couldn't find any reference
 to .exe 
 files that would exclude them from execution...
 
 Thanks for any help or insight into this matter!
 
 Jason Young


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




Help with CGIs in Tomcat

2002-09-26 Thread zsx

Hi, when run a cgi installed in tomcat with next set up appers this 
error:

the url http://localhost/appwebcgi/cgi-bin/entrada

ELF Ð49 4 (44  Ô!¸!¸!¸!¸é退°
/usr/lib/ld.so.15L6.FE5D1H/J9C7KI38$ +=G'04!*2-:,@(%)
A;B#Ôèô´ È ø ( 4 @  Ð H ˜  
h!¸!¼€#0#X#h# #¡  Ð 
%#€.#¡3 @ r!¸ˆ!ì!ø”p¬#˜½LÄHP 
Ê8ó4ú#ŒX €d C[ j ð` ‚  
¦GÏ Þ#€!æ#œ÷#ˆ˜$ È| 
(,#¡3!¼MSÿñd!¸kxV—Ðä 
œ@£#h²`$ Á˜€ Ç 
__1cH__CimplKcplus_fini6F_v__start_environ_end_ex_register$XBQ0PqAjiTZ9D
zN.ObtenerFamiliaDeUsuario.__func___GLOBAL_OFFSET_TABLE_atexitexit_get_e
xit_frame_monitorFICHERO_FAMILIASmalloc_init$XBQ0PqAjiTZ9DzN.ObtenerFami
lia.__func__fclose___Argvgetenv_DYNAMICprintf__1cG__CrunVdo_exit_code_in
_range6Fpv1_v_$XBQ0PqAXJZZ9DJR.HTML_Arranca.__func__ObtenerFamiliaDeUsua
rio__1cG__CrunMdo_exit_code6F_v__exit$XBQ0PqAjiTZ9DzN.ObtenerUsuario.__f
unc___ex_deregisterenvironFICHERO_USUARIOS__cg92_usedObtenerUsuarioHTML_
Arrancastrcmpfgets_edata_PROCEDURE_LINKAGE_TABLE_fopen__fsr_init_value_e
text_lib_version$XBQ0PqAjiTZ9DzN.main.__func__mainstrlen__environ_lockOb
tenerFamilia_fini__1cH__CimplKcplus_init6F_v_libc.so.1SYSVABI_1.3SUNWpri
vate_1.1libc.so.1ä7̳î NÌqú#7#8#4#0K#X1#”4!ì%!
ø5A(=4,@GL)X.d0p'¼ à @¢ 
DˆâcŒ¥, ¤ ¤@'ˆè ¥ €ä$ã€+ª`€€­-`® £¬ `?¬€«- )
ˆ¨#„Á-ì® ¯=à¯-à¬-€¬€ì%Á œ#  €€@E`F@E]!˜ˆÐ#€€ 
ˆÐ#”€€@EQ@’”–@‚@EJ@EKã»ˆð' DÀ'»ðÀ'»ì!
ˆà#˜#F¢bh@E?’@Ð'¿øÀ'¿ô »ô¢$ä¿ø’@@E9”€€¢€/ »ô@DÐ'»ð 
»ô@ΐÐ'»ìà»ìàL €¤ €€à Dâ»ì@E%’@€¢ €  
à'¿ô€¿ÿéà¿ô€¤€€  »ô¢$ä¿ø’@@E ”€€¢¿ÿÕà¿ø@E 
à¿ô€¤€à»ð€à'¿ü!ˆ # €à'¿ü€à¿ü°Çàèã¿ˆð' Dà 
D@Dõ  @DõÐ'¿ðÀ'¿øÀ'¿ôà Dâ¿øàL€¤€8à Dâ¿øàL€¤ :€2à 
Dâ¿øàL€¤ €,à Dâ¿øàL€¤ €à Dâ¿øàL€¤ € à 
Dâ¿øäLà¿ðâ¿ôä,à¿ô  à'¿ôà¿ø  à'¿øà Dâ¿øàL€¤€à 
Dâ¿øàL€¤ :€à Dâ¿øàL€¤ ¿ÿØà¿ðâ¿ôÀ,à Dâ¿øàL€¤€à¿ø  
à'¿øÀ'¿ôà Dâ¿øàLà/¿îäO¿îà Dâ¿ôä,àO¿îà/¿ïà¿ø  à'¿øà¿ô  
à'¿ôàO¿ïà/¿íàO¿í€¤€à Dâ¿øàLà/¿ëäO¿ëà Dâ¿ôä,àO¿ëà/¿ìà¿ø  
à'¿øà¿ô  à'¿ôàO¿ìà/¿êàO¿ê€¤¿ÿìà¿ð€à'¿ü€à¿ü°
Çàèã¿ˆð' Dà D@Dg  @DgÐ'¿ðÀ'¿øÀ'¿ôà Dâ¿øàL€¤€8à 
Dâ¿øàL€¤ €2à Dâ¿øàL€¤ €,à Dâ¿øàL€¤ €à Dâ¿øàL€¤ € à 
Dâ¿øäLà¿ðâ¿ôä,à¿ô  à'¿ôà¿ø  à'¿øà Dâ¿øàL€¤€à 
Dâ¿øàL€¤ €à Dâ¿øàL€¤ ¿ÿØà¿ðâ¿ôÀ,à Dâ¿øàL€¤€à¿ø  
à'¿øÀ'¿ôà Dâ¿øàLà/¿îäO¿îà Dâ¿ôä,àO¿îà/¿ïà¿ø  à'¿øà¿ô  
à'¿ôàO¿ïà/¿íàO¿í€¤€à Dâ¿øàLà/¿ëäO¿ëà Dâ¿ôä,àO¿ëà/¿ìà¿ø  
à'¿øà¿ô  à'¿ôàO¿ìà/¿êàO¿ê€¤¿ÿìà¿ð€à'¿ü€à¿ü°
Çàèã¿!F l@Cߐ!ˆÐ$#˜!ˆà#˜€¤€ !F €@Cא ?ÿ€$à'¿ü!F 
¸@C͐!ˆÐ$#œ!ˆà#œ€¤€ !F Ì@CŐ ?ÿ€à'¿ü!F #@C»Ð'¿ôà¿ôÿþ]
Ð'¿øà¿ø@@C™€à¿ü°Çàèã¿˜ð' D!F #@C Ð'¿øà D#F¢
c @C’@€¢ €F!F #0@C•!F #L@C‘!F #T@C!F #\â¿ø@C‡’@!F 
#„@Cƒ!F #Œ@C!F #@C{!F #¨@Cw!F #ä@Cs!G  @Co!G  
@@Ck!G  €@Cg!G  Œ@Cc!G  ˜@C_!G  ¤@C[!G  ¨@CW€ à 
D#G¢`°@C@’@€¢ €D!G  ¼@CH!G  Ø@CD!G  à@C@!G  è@C!G !
@C8!G !@C4!G !@C0!G !,@C,!G !d@C(!G !€@C$!G !¼@C 
!G !ø@C!G @C!G @C!G @C!G  @C €¾à D#G¢b
(@Bõ’@€¢ €D!G 0@Bý!G L@Bù!G T@Bõ!G \@Bñ!G „@Bí!
G Œ@Bé!G @Bå!G ¨@Bá!G ä@Bݐ!G #@Bِ!G #@@BՐ!G 
#|@Bѐ!G #ˆ@B͐!G #”@Bɐ!G # @BŐ!G #¤@BÁ€sà D#G¢
c¬@Bª’@€¢ €D!G #´@B²!G #Ð@B®!G #Ø@Bª!G #à@B¦!H  @B¢
!H  @Bž!H  @Bš!H  ,@B–!H  h@B’!H  „@BŽ!H  Ä@BŠ!H 
!@B†!H ! @B‚!H !@B~!H !$@Bz!H !(@Bv€(!H !0@Bp!H !
L@Bl!H !T@Bh!H !\@Bd!H !€@B`!H !ˆ@B\!H !Œâ D@BV’@!H 
!¬@BR!H !°@BN€Çàèã¿ @ ôÐàÀà?øâ?
ð€¤€ŸÄ€¤@€ŸÄ@Çàèã¿ @ ÀÐàÀà?ü€¤€Ò ŸÄÐ@ 
tÐàÀà?üâ?
ô€¤€ŸÄ€¤@€ŸÄ@ÇàèObtenerFamiliaDeUsuarioObtenerFamiliaObtener
UsuariomainHTML_ArrancarFICHERO_FAMILIASNo se encontro variable de 
entorno : FICHERO_FAMILIAS FICHERO_USUARIOSNo se encontro variable de 
entorno : FICHERO_USUARIOS 
REMOTE_USERLD_LIBRARY_PATHadministradorContent-type: text/html 
operadorContent-type: text/html cli_extContent-type: text/html 
cli_intContent-type: text/html Content-type: text/html Usuario 
desconocido, familia %
s€00¿ÿó0¿ÿðH0¿ÿíT0¿ÿê`0¿ÿçl0¿ÿäx0¿ÿá„0¿ÿސ0¿ÿÛœ0¿ÿ
ب0¿ÿÕ´0¿ÿÒ H ˜è´ ô oÿýø¼üoÿÿþ Èoÿÿÿ @ 
øØ oÿýüoÿÿû!¼ÿþèÿþöØÿþöÿþöØ#¡pÿñÔèô´ È 
ø ( 4 @  Ð H ˜  h!¸!
¼€#0#X#h# #¡]
I#¡/ÿñ6#@B#\Q \ Ð 

Problem invoking CGIs that are EXE files

2002-09-18 Thread Jason Young

I have Tomcat 4.0.3 installed on a Solaris 8 box, and have been trying 
to set up the CGI functionality. I have a 3rd party web application that 
has binary executables, all of which are named filename.exe. Don't get 
me started on why a unix binary would have an .exe file extension...

The problem is that Tomcat is always returning the binary to the 
browser, instead of executing it. Simply changing the extension of the 
binary to .sh (renaming the binary) will cause Tomcat to actually 
execute it. However, I would like to not have to modify this 3rd party 
app, since much of their HTML references these cgi's...

I cannot see a difference in my configuration that would cause Tomcat to 
work correctly with .sh files, and not .exe files. My cgi servlet 
mapping should be causing the execution of all files that match the 
/cgi-bin/* pattern.

Are there just some file extensions that Tomcat will not try to execute? 
I looked at the source code, and couldn't find any reference to .exe 
files that would exclude them from execution...

Thanks for any help or insight into this matter!

Jason Young

Inet Technologies, Inc.
1500 N Greenville Ave
Richardson, TX 75081


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




RE: Problem invoking CGIs that are EXE files

2002-09-18 Thread Turner, John


.exe may not be explicitly excluded as an extension, but are other file
extensions explicitly included?  Like .sh, .pl, .cgi?

John

 -Original Message-
 From: Jason Young [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 11:00 AM
 To: [EMAIL PROTECTED]
 Subject: Problem invoking CGIs that are EXE files
 
 

...snip...

 Are there just some file extensions that Tomcat will not try 
 to execute? 
 I looked at the source code, and couldn't find any reference 
 to .exe 
 files that would exclude them from execution...
 
 Thanks for any help or insight into this matter!
 
 Jason Young
 
 Inet Technologies, Inc.
 1500 N Greenville Ave
 Richardson, TX 75081
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Problem invoking CGIs that are EXE files

2002-09-18 Thread Jason Young

It doesn't appear that any file extensions are checked by the CGI 
servlet, and I cannot find any code that explicitly 'allows' or 'denies' 
certain file extensions.

As far as I can tell, the request for /cgi-bin/whatever.exe is not 
being handled by the CGIServlet at all. When CGIServlet is invoked, it 
tries to find the cgi file, and prints logs so you can tell this is 
happening. A request for an .exe file does not cause this log to get 
printed. So this tells me that the request is never getting sent to the 
CGIServlet, even though it matches the /cgi-bin/* pattern, which the 
CGIServlet is supposed to handle.

--jason


Turner, John wrote:

.exe may not be explicitly excluded as an extension, but are other file
extensions explicitly included?  Like .sh, .pl, .cgi?

John

  

-Original Message-
From: Jason Young [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 11:00 AM
To: [EMAIL PROTECTED]
Subject: Problem invoking CGIs that are EXE files





...snip...

  

Are there just some file extensions that Tomcat will not try 
to execute? 
I looked at the source code, and couldn't find any reference 
to .exe 
files that would exclude them from execution...

Thanks for any help or insight into this matter!

Jason Young

Inet Technologies, Inc.
1500 N Greenville Ave
Richardson, TX 75081


--
To unsubscribe, e-mail:   


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

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


  



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




Re: CGIs

2002-08-21 Thread Stephan Orme

Taral, do you know how to include CGI's in a page? I have all this working
but I can't include CGI's. I.e. These don't work:

trtd
!--#include virtual=/cgi-bin/test-cgi--
!--#exec cmd=ls --
/td/tr

I can call the CGI directly and it works fine:
http://localhost/cgi-bin/test-cgi

 Hi,
 
 If you want to try CGI then try there are two options.
 I did same thing, I had to redirect my cgi request to servlet.
 
 I didnt use the CGI instead i made changes in web.xml like this:
 servlet
   servlet-namemyservlet/servlet-name
   servlet-classpackagename.servletname/servlet-class
 /servlet
 
 
 servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/cgi/cgi_exe.exe/url-pattern
 /servlet-mapping
 
 So when ever in the url request comes for the cgi_exe as
 http://ip:8080/context/cgi/cgi_exe.exe
 It will redirect this request to my servlet. In that servlet you can write
 code to redirect to jsp or your business logic.
 
 
 If you still want to use cgi for particular reason then in tomcat 4(I have
 tomcat 4.0.4 and I didnt use apache) above make changes in web.xml.
 In that file find the word cgi and uncomment that part.
 Then as mentioned in it as
 param-namecgiPathPrefix/param-name
 param-valueWEB-INF/cgi/param-value
 Make directory under WEB-INF named cgi and put all your cgis over there.
 
 Also another context
 servlet-mapping
   servlet-namecgi/servlet-name
   url-pattern/cgi-bin//url-pattern
 /servlet-mapping
 
 states that your cgi requests should be coming as
 http://ip:8080/context/cgi-bin/cgi_exe.cgi
 
 I hope this may help you.
 
 Thanks
 Taral Shah
 Software Engineer,
 Contech Software Ltd.
 [EMAIL PROTECTED]
 
 Experience is what you get when you were expecting something else.
 
 
 
 - Original Message -
 From: Jose Euclides da Silva Junior - DIGR.O
 [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, August 20, 2002 7:10 PM
 Subject: RES: CGIs
 
 
 So, I guess you could try CGIServlet from Tomcat' package.
 
 -Mensagem original-
 De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
 Enviada em: terça-feira, 20 de agosto de 2002 10:40
 Para: Tomcat Users List
 Assunto: RE: CGIs
 
 
 i mean, i want call jsps from CGIs, because my initial system is in CGIs.,
 and i want to implement my new pages in jsp
 
 -Mensaje original-
 De: Jose Euclides da Silva Junior - DIGR.O
 [mailto:[EMAIL PROTECTED]]
 Enviado el: Martes, 20 de Agosto de 2002 08:24 a.m.
 Para: 'Tomcat Users List'
 Asunto: RES: CGIs
 
 
 Could you call your CGIs from JSP?
 
 -Mensagem original-
 De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
 Enviada em: segunda-feira, 19 de agosto de 2002 14:13
 Para: Tomcat Users List
 Assunto: CGIs
 
 
 Hello,
 I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
 do this?, my cgis were generated by C.
 Can I do it?, I don't want to install Apache, I just want Tomcat.
 It's because i have a part of an aplication in CGIs and I want to have
 another part  in JSPs, can I do it?.
 
 Thanks.
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

-- 
Stephan Orme
Database Project Co-director
Data Specialist
Pesticide Action Network North America (PANNA)

49 Powell St., Suite 500
San Francisco, CA  94102
(415) 981-6205 ext. 308
(510) 845-7323 (Monday, Wednesday and Friday)
(415) 981-1991 (fax)
[EMAIL PROTECTED]

Pesticide Action Network, advancing alternatives to pesticides
worldwide

Visit our Web site at http://www.panna.org
 - Explore our extensive resources (updated daily)
 - Find out about our organization and work
 - Join us!

Need detailed information on pesticides? See our comprehensive database at
http://www.pesticideinfo.org


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




RES: CGIs

2002-08-20 Thread Jose Euclides da Silva Junior - DIGR.O

Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: Tomcat Users List
Asunto: Design question


Greetings everybody,
 I am doing some research on possibility of using Tomcat to do a project.
General requirements as follows
1. A user will login to the web application and upload a file to a remote
server. He or she can only access his or her WIN2K/NT domain to upload this
file.
2. User will download a file or a number of files from the remote server -
again from his or her domain.
I was told that I can do this job using Java Servlet and IBM Websphere or
BEA Weblogic.
I am not sure if this is possible in Tomcat. Has anybody done similar work
using Tomcat. Can you share your experiences please?
Thanks
Raju Lokhande



*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


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


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

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




RE: CGIs

2002-08-20 Thread Keith Wannamaker

Sure, instal Tomcat 4.0.x.  It has a CGIServlet.

Keith

| -Mensagem original-
| De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
| Enviada em: segunda-feira, 19 de agosto de 2002 14:13
| Para: Tomcat Users List
| Assunto: CGIs
|
|
| Hello,
| I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
| do this?, my cgis were generated by C.
| Can I do it?, I don't want to install Apache, I just want Tomcat.


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




RE: CGIs

2002-08-20 Thread Rocío Ninahuanca Flores

i mean, i want call jsps from CGIs, because my initial system is in CGIs.,
and i want to implement my new pages in jsp

-Mensaje original-
De: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 20 de Agosto de 2002 08:24 a.m.
Para: 'Tomcat Users List'
Asunto: RES: CGIs


Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: Tomcat Users List
Asunto: Design question


Greetings everybody,
 I am doing some research on possibility of using Tomcat to do a project.
General requirements as follows
1. A user will login to the web application and upload a file to a remote
server. He or she can only access his or her WIN2K/NT domain to upload this
file.
2. User will download a file or a number of files from the remote server -
again from his or her domain.
I was told that I can do this job using Java Servlet and IBM Websphere or
BEA Weblogic.
I am not sure if this is possible in Tomcat. Has anybody done similar work
using Tomcat. Can you share your experiences please?
Thanks
Raju Lokhande



*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


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


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

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


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




RES: CGIs

2002-08-20 Thread Jose Euclides da Silva Junior - DIGR.O

So, I guess you could try CGIServlet from Tomcat' package.

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 20 de agosto de 2002 10:40
Para: Tomcat Users List
Assunto: RE: CGIs


i mean, i want call jsps from CGIs, because my initial system is in CGIs.,
and i want to implement my new pages in jsp

-Mensaje original-
De: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 20 de Agosto de 2002 08:24 a.m.
Para: 'Tomcat Users List'
Asunto: RES: CGIs


Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: Tomcat Users List
Asunto: Design question


Greetings everybody,
 I am doing some research on possibility of using Tomcat to do a project.
General requirements as follows
1. A user will login to the web application and upload a file to a remote
server. He or she can only access his or her WIN2K/NT domain to upload this
file.
2. User will download a file or a number of files from the remote server -
again from his or her domain.
I was told that I can do this job using Java Servlet and IBM Websphere or
BEA Weblogic.
I am not sure if this is possible in Tomcat. Has anybody done similar work
using Tomcat. Can you share your experiences please?
Thanks
Raju Lokhande



*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


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


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

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


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

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




Re: CGIs

2002-08-20 Thread Taral Shah

Hi,

If you want to try CGI then try there are two options.
I did same thing, I had to redirect my cgi request to servlet.

I didnt use the CGI instead i made changes in web.xml like this:
  servlet
servlet-namemyservlet/servlet-name
servlet-classpackagename.servletname/servlet-class
  /servlet


  servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern/cgi/cgi_exe.exe/url-pattern
  /servlet-mapping

So when ever in the url request comes for the cgi_exe as
http://ip:8080/context/cgi/cgi_exe.exe
It will redirect this request to my servlet. In that servlet you can write
code to redirect to jsp or your business logic.


If you still want to use cgi for particular reason then in tomcat 4(I have
tomcat 4.0.4 and I didnt use apache) above make changes in web.xml.
In that file find the word cgi and uncomment that part.
Then as mentioned in it as
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
Make directory under WEB-INF named cgi and put all your cgis over there.

Also another context
  servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin//url-pattern
  /servlet-mapping

states that your cgi requests should be coming as
http://ip:8080/context/cgi-bin/cgi_exe.cgi

I hope this may help you.

Thanks
Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]

Experience is what you get when you were expecting something else.



- Original Message -
From: Jose Euclides da Silva Junior - DIGR.O
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 20, 2002 7:10 PM
Subject: RES: CGIs


So, I guess you could try CGIServlet from Tomcat' package.

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 20 de agosto de 2002 10:40
Para: Tomcat Users List
Assunto: RE: CGIs


i mean, i want call jsps from CGIs, because my initial system is in CGIs.,
and i want to implement my new pages in jsp

-Mensaje original-
De: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 20 de Agosto de 2002 08:24 a.m.
Para: 'Tomcat Users List'
Asunto: RES: CGIs


Could you call your CGIs from JSP?

-Mensagem original-
De: Rocío Ninahuanca Flores [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 19 de agosto de 2002 14:13
Para: Tomcat Users List
Assunto: CGIs


Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.






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




CGIs

2002-08-19 Thread Roco Ninahuanca Flores

Hello,
I have an aplication in CERN server, and I want to run CGIs in Tomcat, can i
do this?, my cgis were generated by C.
Can I do it?, I don't want to install Apache, I just want Tomcat.
It's because i have a part of an aplication in CGIs and I want to have
another part  in JSPs, can I do it?.

Thanks.


-Mensaje original-
De: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 19 de Agosto de 2002 12:01 p.m.
Para: Tomcat Users List
Asunto: Design question


Greetings everybody,
 I am doing some research on possibility of using Tomcat to do a project.
General requirements as follows
1. A user will login to the web application and upload a file to a remote
server. He or she can only access his or her WIN2K/NT domain to upload this
file.
2. User will download a file or a number of files from the remote server -
again from his or her domain.
I was told that I can do this job using Java Servlet and IBM Websphere or
BEA Weblogic.
I am not sure if this is possible in Tomcat. Has anybody done similar work
using Tomcat. Can you share your experiences please?
Thanks
Raju Lokhande



*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


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


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




tomcat to run perl cgis?

2002-06-24 Thread Scott Purcell

Hello,
I have Tomcat 4.0.3 running on my NT box. I do mostly servlet work, but I have the 
need to run a Perl CGI for a web project. I have put some .pl files and .cgi files 
into the docroot, but they do not execute properly. Is there a way to allow Perl to 
run with Tomcat? Could someone advise me of a path I could take to get them to run?

Thanks,
Scott


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




Re: tomcat to run perl cgis?

2002-06-24 Thread Liam Morley

Scott,
Have you looked in your $CATALINA_HOME/conf/web.xml for more info about 
running cgi scripts in Tomcat? That might be all you need; I haven't 
tested this out, but it looks pretty straight forward...

best of luck,
Liam Morley

Scott Purcell wrote:

Hello,
I have Tomcat 4.0.3 running on my NT box. I do mostly servlet work, but I have the 
need to run a Perl CGI for a web project. I have put some .pl files and .cgi files 
into the docroot, but they do not execute properly. Is there a way to allow Perl to 
run with Tomcat? Could someone advise me of a path I could take to get them to run?

Thanks,
Scott


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




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




Can Tomcat Web Server serve CGIs?

2001-03-27 Thread Kris Gonzalez

I've need for a single CGI script in an otherwise entirely JSP web
application.  As such, I'd rather save myself the overhead of
integrating Tomcat into a full Apache install if Tomcat can support CGI
scripts itself.

So...can it?

-kg




Re: Can Tomcat Web Server serve CGIs?

2001-03-27 Thread Craig R. McClanahan



On Tue, 27 Mar 2001, Kris Gonzalez wrote:

 I've need for a single CGI script in an otherwise entirely JSP web
 application.  As such, I'd rather save myself the overhead of
 integrating Tomcat into a full Apache install if Tomcat can support CGI
 scripts itself.
 
 So...can it?
 

Work is in progress to add CGI capabilities to Tomcat 4.0.  In the mean
time, you will need to integrate with a web server.

 -kg
 
 

Craig McClanahan