users@glassfish.java.net

Re: Debugging CGI script

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Mon, 08 Aug 2011 11:17:38 -0700

I have tried a similar web.xml with a hello world Python script as follows:

#!/usr/bin/python
print "Content-type: text/html\n\n"
print "Hello, World from Python\n"

It is working in GlassFish.
One can find more details about GlassFish CGI in
http://blogs.oracle.com/swchan/entry/common_gateway_interface_in_glassfish
You may like to check the CGI program is correct.

Shing Wai Chan


On 8/5/11 11:46 PM, Руслан wrote:
> Yes, of course! The file in the attachment.
>
> 05.08.2011, 20:50, "Shing Wai Chan"<shing.wai.chan_at_oracle.com>:
>> Can you show us your web.xml in your application?