DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22858>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22858 CGI scripts without a file suffix causes Error=193 Summary: CGI scripts without a file suffix causes Error=193 Product: Tomcat 4 Version: 4.0.4 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Servlets:CGI AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If you create or use a Perl CGI script that does not use a file suffix (IE. ".cgi") then the CGI servlet within Tomcat generates error=193. The solution is to rename the CGI with a ".cgi" file extension. Making this change though requires that all HTML pages that refer to the CGI must be changed to reference the new CGI file name. The CGI script without a file extension works correctly in Apache. The path references have been modified. The error log output is: In the log file localhost_log.<date>.txt: 2003-08-14 11:42:23 cgi: findCGI: path=/xml-mg-search, <drive>:\soft\AR2\Apache Tomcat 4.0\webapps\ROOT\WEB-INF/cgi 2003-08-14 11:42:23 cgi: findCGI: currentLoc=<drive>:\soft\AR2\Apache Tomcat 4.0 \webapps\ROOT\WEB-INF\cgi 2003-08-14 11:42:23 cgi: findCGI: currentLoc=<drive>:\soft\AR2\Apache Tomcat 4.0 \webapps\ROOT\WEB-INF\cgi 2003-08-14 11:42:23 cgi: findCGI: FOUND cgi at <Drive>:\soft\AR2\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\cgi\xml-mg-search 2003-08-14 11:42:23 cgi: findCGI calc: name=xml-mg-search, path=<Drive>:\soft\AR2\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\cgi\xml-mg- search, scriptname=/cgi-bin\xml-mg-search, cginame=\xml-mg-search 2003-08-14 11:42:23 cgi: runCGI(envp=[{HTTP_USER_AGENT=Java1.3.1_05, REQUEST_METHOD=GET, AUTH_TYPE=, SERVER_NAME=localhost, SERVER_SOFTWARE=TOMCAT, HTTP_HOST=localhost, GATEWAY_INTERFACE=CGI/1.1, X_TOMCAT_SCRIPT_PATH=<Drive>:\soft\AR2\Apache Tomcat 4.0\webapps\ROOT\WEB- INF\cgi\xml-mg-search, REMOTE_ADDR=127.0.0.1, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, REMOTE_HOST=localhost, QUERY_STRING=cgi=http%3A%2F%2Flocalhost% 2Fcgi-bin%2Fxml-mg-search&sid=0&app=%2Fadaptive&laf=% 2FBBL&xsl=search.xsl&clslist=&vc=Gu006UREP40d013CodingSchemess003RSMr010RSM_Obje ct% 3AV000002aa3d&query=visa&y=0&x=0&pa=Gu006UREP40d013CodingSchemess003RSMr010RSM_O bject%3AV000002aa69&attrlist=&rid=CodingSchemes&bs=10&mgdb=CodingSchemes, HTTP_CONNECTION=keep-alive, SERVER_PORT=80, CONTENT_TYPE=, CONTENT_LENGTH=, HTTP_ACCEPT=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2, SCRIPT_NAME=/cgi-bin\xml-mg-search, REMOTE_USER=, REMOTE_IDENT=}], command=<Drive>:\soft\AR2\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\cgi\xml-mg- search) 2003-08-14 11:42:23 StandardWrapperValve[cgi]: Servlet.service() for servlet cgi threw exception java.io.IOException: CreateProcess: <Drive>:\soft\AR2\Apache Tomcat 4.0 \webapps\ROOT\WEB-INF\cgi\xml-mg-search cgi=http%253A%252F%252Flocalhost% 252Fcgi-bin%252Fxml-mg-search sid=0 app=%252Fadaptive laf=%252FBBL xsl=search.xsl clslist= vc=Gu006UREP40d013CodingSchemess003RSMr010RSM_Object% 253AV000002aa3d query=visa y=0 x=0 pa=Gu006UREP40d013CodingSchemess003RSMr010RSM_Object%253AV000002aa69 attrlist= rid=CodingSchemes bs=10 mgdb=CodingSchemes error=193 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.<init>(Win32Process.java:61) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:546) at java.lang.Runtime.exec(Runtime.java:413) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run (CGIServlet.java:1585) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process (HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run (HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]