Re: Unable to read shell environment variables

2008-03-28 Thread Mark Thomas

Patrick Lee wrote:

Does anyone know if this has been fixed in a newer 6 release or if
someone is already looking at it?


I have just fixed trunk and proposed this fix for 6.0.x.
http://svn.apache.org/viewvc?rev=642391view=rev

A fix has also been proposed for 5.5.x
http://people.apache.org/~markt/patches/2008-03-28-cgi-env.patch

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: Unable to read shell environment variables

2008-03-26 Thread Patrick Lee
On Fri, Feb 29, 2008 at 2:23 PM, Caldarale, Charles R
[EMAIL PROTECTED] wrote:

  When running a Java program under Win2008, what value does the system
  property os.name have?

windows vista

  What JVM version are you running?  (This has the potential of being a
  JVM, not Tomcat, problem.  The value of the aforementioned system
  property should tell us which.)

1.6.0_03

In the code for CGIServelet.java there is no check for windows vista

I have passShellEnvironment set to true as it's required for the scripts to run.

Regards,
Patrick

-
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: Unable to read shell environment variables

2008-03-26 Thread Caldarale, Charles R
 From: Patrick Lee [mailto:[EMAIL PROTECTED] 
 Subject: Re: Unable to read shell environment variables
 
 In the code for CGIServelet.java there is no check for windows vista

As a workaround until this gets fixed, you can override the os.name
property on the command line (or in the Java tab of tomcat{5|6}w.exe if
running as a service).  Just set:

  -Dos.name=Windows 2008

This should let you run CGI successfully.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Unable to read shell environment variables

2008-02-28 Thread Caldarale, Charles R
 From: Patrick Lee [mailto:[EMAIL PROTECTED] 
 Subject: Unable to read shell environment variables
 
 It looks like getShellEnvironment() is testing for specific versions
 of Windows and 2008 is not one of them, then defaulting to the unix
 call and throwing the Cannot run program env error.

When running a Java program under Win2008, what value does the system
property os.name have?

What JVM version are you running?  (This has the potential of being a
JVM, not Tomcat, problem.  The value of the aforementioned system
property should tell us which.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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