users@glassfish.java.net

Debugging CGI script

From: Руслан <kha-ruslan_at_yandex.ru>
Date: Fri, 05 Aug 2011 13:01:25 +0400

Hi! I try to run CGI script. But script return blank page. I set debug level to 10 to view service information and get this:

ServletRequest Properties:
characterEncoding = null
contentLength = -1 #probably reason here
contentType = null #or here
locale = ru_RU
locale = ru
locale = en_US
locale = en
protocol = HTTP/1.1
remoteAddr = 127.0.0.1
remoteHost = 127.0.0.1
scheme = http
secure = false
serverName = localhost
serverPort = 80

HttpServletRequest Properties:
authType = null
contextPath = /wincraft_repo
header host = localhost
header connection = keep-alive
header user-agent = Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
header accept = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
header accept-encoding = gzip,deflate,sdch
header accept-language = ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
header accept-charset = windows-1251,utf-8;q=0.7,*;q=0.3
method = GET
pathInfo = /hello.cgi
pathTranslated = C:\glassfishv3\glassfish\domains\domain1\applications\wincraft_repo\hello.cgi
queryString = null
remoteUser = null
requestedSessionId = null
requestedSessionIdFromCookie = false
requestedSessionIdFromURL = false
requestedSessionIdValid = false
requestURI = /wincraft_repo/cgi-bin/hello.cgi
servletPath = /cgi-bin
userPrincipal = null
ServletRequest Attributes

ServletConfig Properties:
servletName = cgi

ServletConfig Initialization Parameters:
parameterEncoding = System.getProperty("file.encoding","UTF-8")
cgiPathPrefix = WEB-INF/cgi
executable = c:/python27/python.exe
debug = 10

ServletContext Properties:
majorVersion = 3
minorVersion = 0
realPath('/') = C:\glassfishv3\glassfish\domains\domain1\applications\wincraft_repo\
serverInfo = GlassFish Server Open Source Edition 3.0.1

ServletContext Initialization Parameters:
com.sun.faces.validateXml = true
com.sun.faces.forceLoadConfiguration = true


Who can explain debug information returned by GlassFish server.