You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sujith Mathew <su...@myrealbox.com> on 2002/07/25 01:29:31 UTC
CGI script to execute in TOMCAT. PLEASE HELP
Hello,
I am using win2000 Advanced Server + tomcat4.04 (without IIS and apache
http), serving static and dynamic pages. I want a CGI script to execute.
When i try to execute CGI scripts in tomcat an error page is displayed.
It is reproduced below.
Please help me .
Thanks in advance
Sujith Mathew
----------------------------------------------------------------------------------------
$Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java,v
1.6 2001/08/20 02:42:11 amyroh Exp $
CGI script not found or not specified.
Check the *HttpServletRequest pathInfo
<http://www.sbtr.com/cgi-bin/branchl.cgi#pathInfo>* property to
see if it is what you meant it to be. You must specify an
existant and executable file as part of the path-info.
For a good discussion of how CGI scripts work and what their
environment variables mean, please visit the CGI Specification
page <http://cgi-spec.golux.com/>.
ServletRequest Properties
* *characterEncoding* = null
* *contentLength* = 39
* *contentType* = application/x-www-form-urlencoded
* *locale* = hi
* *parameter* B1 = Search
* *parameter* bname = kowdiar
* *parameter* dist =
* *parameter* state = ANY
* *protocol* = HTTP/1.0
* *remoteAddr* = 202.88.239.52
* *remoteHost* = 202.88.239.52
* *scheme* = http
* *secure* = false
* *serverName* = www.sbtr.com
* *serverPort* = 80
------------------------------------------------------------------------
HttpServletRequest Properties
* *authType* = null
* *contextPath* =
* *header* accept = image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, */*
* *header* referer = http://www.sbtr.com/branch.htm
* *header* accept-language = hi
* *header* content-type = application/x-www-form-urlencoded
* *header* accept-encoding = gzip, deflate
* *header* user-agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
* *header* content-length = 39
* *header* via = 1.1 onlinesbt.com:3128 (Squid/2.4.STABLE1)
* *header* x-forwarded-for = 172.16.1.36
* *header* host = www.sbtr.com
* *header* cache-control = no-cache, max-age=259200
* *header* connection = keep-alive
* *method* = POST
* *pathInfo* = /branchl.cgi
* *pathTranslated* = e:\ftp\sbtr.com\branchl.cgi
* *queryString* = null
* *remoteUser* = null
* *requestedSessionId* = null
* *requestedSessionIdFromCookie* = false
* *requestedSessionIdFromURL* = false
* *requestedSessionIdValid* = false
* *requestURI* = /cgi-bin/branchl.cgi
* *servletPath* = /cgi-bin
* *userPrincipal* = null
------------------------------------------------------------------------
ServletRequest Attributes
------------------------------------------------------------------------
ServletConfig Properties
* *servletName* = cgi
------------------------------------------------------------------------
ServletConfig Initialization Parameters
* *cgiPathPrefix* = WEB-INF/cgi
* *debug* = 6
* *clientInputTimeout* = 100
------------------------------------------------------------------------
ServletContext Properties
* *majorVersion* = 2
* *minorVersion* = 3
* *realPath('/')* = e:\ftp\sbtr.com\
* *serverInfo* = Apache Tomcat/4.0.4
------------------------------------------------------------------------
ServletContext Initialization Parameters
------------------------------------------------------------------------
ServletContext Attributes
* *org.apache.catalina.WELCOME_FILES* = [Ljava.lang.String;@1fbfd6
* *javax.servlet.context.tempdir* =
C:\tomcat4\work\Standalone\www.sbtr.com\_
* *org.apache.catalina.resources* =
org.apache.naming.resources.ProxyDirContext@6b9c84
* *org.apache.catalina.jsp_classpath* =
C:/tomcat4/classes/;C:/tomcat4/lib/jasper-compiler.jar;C:/tomcat4/lib/jasper-runtime.jar;C:/tomcat4/lib/mm.mysql-2.0.4-bin.jar;C:/tomcat4/lib/naming-factory.jar;C:/tomcat4/common/classes/;C:/tomcat4/common/lib/activation.jar;C:/tomcat4/common/lib/jdbc2_0-stdext.jar;C:/tomcat4/common/lib/jndi.jar;C:/tomcat4/common/lib/jta-spec1_0_1.jar;C:/tomcat4/common/lib/mail.jar;C:/tomcat4/common/lib/naming-common.jar;C:/tomcat4/common/lib/naming-resources.jar;C:/tomcat4/common/lib/servlet.jar;C:/tomcat4/common/lib/tools.jar;C:/tomcat4/common/lib/tyrex-0.9.7.0.jar;C:/tomcat4/common/lib/xerces.jar
------------------------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>