Re: Tomcat 5x SSI

2007-10-28 Thread Mark Thomas
Mark Thomas wrote:
 Samik Basu wrote:
 Yes, I have tried it out but turning it on in Web.xml. However it did not
 help. For example - this variable is set to 1 and then I invoked
 /Tomcat/cgi-bin/test.cgi
 /cgi-bin/test.cgi   - error is context not found
 ../cgi-bin/test.cgi   (assume that the shtml file just under the root of the
 project directory) - error is file not found
 I cannot give ../WEB-INF/cgi/test,cgi as that will just show the cgi
 program - not the result of its execution.
 I am sure I am missing something simple. Please post if I can provide some
 more info.
 
 Could be a bug - let me look into it.

Yep, it is a bug. I'll get it fixed.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5x SSI

2007-10-27 Thread Mark Thomas
Samik Basu wrote:
 Yes, I have tried it out but turning it on in Web.xml. However it did not
 help. For example - this variable is set to 1 and then I invoked
 /Tomcat/cgi-bin/test.cgi
 /cgi-bin/test.cgi   - error is context not found
 ../cgi-bin/test.cgi   (assume that the shtml file just under the root of the
 project directory) - error is file not found
 I cannot give ../WEB-INF/cgi/test,cgi as that will just show the cgi
 program - not the result of its execution.
 I am sure I am missing something simple. Please post if I can provide some
 more info.

Could be a bug - lt me look into it.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5x SSI

2007-10-26 Thread Samik Basu
  I am running Apache-Tomcat 5.5.25 - plugged into Eclipse. I have updated
the web.xml and renamed the renametojar files  in server/lib/ to allow cgi
and ssi.  A tomcat project named TomcatProject is created in Eclipse and
the server.xml is updated with the context information as follows:

  Context path=/Tomcat
docBase=My location of TomcatProject
debug=0
reloadable=true
   /Context

In my TomcatProject/WEB-INF I have created a cgi directory inside which all
my cgi files exist. Everything is working okay - for example I can see
correct results for
http://localhost:8080/Tomcat/cgi-bin/test.cgi
and
http://localhost:8080/Tomcat/test.shtml

However, there is one small problem. When I try to execute a cgi program
from shtml file using the following directive:
!-#include virtual=/cgi-bin/test.cgi--
it says that the context for /cgi-bin/test.cgi is not found.
If I use
!--#include virtual=/Tomcat/cgi-bin/test.cgi--
It rightly says that the file is not found.
I have tried out (I think) all possible ways to execute the program - using
exec cgi=, exec virtual=,

Interestingly, when I do !--#include virtual=/Tomcat/test.jsp-- it works
fine i.e. I can include any other types of files.

Can anyone provide some insights. Thanks.


Re: Tomcat 5x SSI

2007-10-26 Thread Mark Thomas
Samik Basu wrote:
 Interestingly, when I do !--#include virtual=/Tomcat/test.jsp-- it works
 fine i.e. I can include any other types of files.

Have you tried setting isVirtualWebappRelative ?

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5x SSI

2007-10-26 Thread Samik Basu
Yes, I have tried it out but turning it on in Web.xml. However it did not
help. For example - this variable is set to 1 and then I invoked
/Tomcat/cgi-bin/test.cgi
/cgi-bin/test.cgi   - error is context not found
../cgi-bin/test.cgi   (assume that the shtml file just under the root of the
project directory) - error is file not found
I cannot give ../WEB-INF/cgi/test,cgi as that will just show the cgi
program - not the result of its execution.
I am sure I am missing something simple. Please post if I can provide some
more info.


On 10/26/07, Mark Thomas [EMAIL PROTECTED] wrote:

 Samik Basu wrote:
  Interestingly, when I do !--#include virtual=/Tomcat/test.jsp-- it
 works
  fine i.e. I can include any other types of files.

 Have you tried setting isVirtualWebappRelative ?

 Mark

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]