You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ed...@philips.com on 2003/11/18 23:56:02 UTC

runCGI under CGIServlet Jakarta-Tomcat v4.1.29

Hello Developer,

I am trying to get a PERL application to run under Jakarta-Tomcat v. 4.1.29 on HP-UX 11.00.
I have enabled the CGIServlet, I configured the servlet to find the script and it looks like "findCGI" does find it, however it produces the following error in the log file:

2003-11-18 22:45:28 cgi: findCGI: path=/shtest, /opt/apache/WebAbsence/WEB-INF/cgi
2003-11-18 22:45:28 cgi: findCGI: currentLoc=/opt/apache/WebAbsence/WEB-INF/cgi
2003-11-18 22:45:28 cgi: findCGI: currentLoc=/opt/apache/WebAbsence/WEB-INF/cgi
2003-11-18 22:45:28 cgi: findCGI: FOUND cgi at /opt/apache/WebAbsence/WEB-INF/cgi/shtest
2003-11-18 22:45:28 cgi: findCGI calc: name=shtest, path=/opt/apache/WebAbsence/WEB-INF/cgi/shtest, scriptname=/WebAbsence/cgi-bin/shtest, cginame=/shtest
2003-11-18 22:45:28 cgi: runCGI(envp=[{X_TOMCAT_SCRIPT_PATH=/opt/apache/WebAbsence/WEB-INF/cgi/shtest, SERVER_NAME=hsgdhr1.anr.ms.philips.com, REMOTE_IDENT=, REQUEST_METHOD=GET, HTTP_ACCEPT_LANGUAGE=en-us, HTTP_HOST=hsgdhr1.anr.ms.philips.com,
HTTP_REFERER=http://hsgdhr1.anr.ms.philips.com:8080/WebAbsence/index.html, HTTP_COOKIE=SITESERVER=GUID=17663D23A533A4BD26A981015FB6A9FF; MEMUSER=francoeur; JSESSIONID=97FB5A76E9BF40C0F7F1FD0496477EBB, PATH_INFO=, CONTENT_TYPE=, CONTENT_LENGTH=,
REMOTE_HOST=dhcpb12163.anr.ms.philips.com, SERVER_PORT=8080, HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*, SCRIPT_NAME=/WebAbsence/cgi-bin/shtest,
REMOTE_ADDR=149.59.171.163, AUTH_TYPE=, REMOTE_USER=, SERVER_SOFTWARE=TOMCAT, HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0), QUERY_STRING=, SERVER_PROTOCOL=HTTP/1.1, GATEWAY_INTERFACE=CGI/1.1, HTTP_CONNECTION=Keep-Alive,
HTTP_ACCEPT_ENCODING=gzip, deflate}], command=/opt/apache/WebAbsence/WEB-INF/cgi/shtest)
2003-11-18 22:45:28 cgi: runCGI (stderr):Can't open perl script ""/opt/apache/WebAbsence/WEB-INF/cgi/shtest"": No such file or directory
2003-11-18 22:45:28 cgi: runCGI: 1 lines received on stderr


I wonder if "runCGI" is itself a perl app and it can not execute?  In this example, "shtest" is a kshell script which looks like this:

 #!/bin/ksh
echo "<HTML><HEAD><TITLE>EDF test</TITLE></HEAD>"
echo "<BODY> this is a kshell test </BODY></HTML>"


What can I do to fix runCGI?  What perl script is it looking for?

Thanks,
Edward Francoeur
Philips Medical Systems
edward.francoeur@philips.com
978-659-7290



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org