免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3037 | 回复: 6
打印 上一主题 下一主题

为tomcat的CGI郁闷中 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-19 17:48 |只看该作者 |倒序浏览
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.io.IOException: CreateProcess: perl "C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\cgi\awstats.cgi" error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>;(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at java.lang.Runtime.exec(Runtime.java:42
        at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:171
        at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:599)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:94
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:94
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:11
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:94
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:94
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)


谁能帮我,郁闷中

论坛徽章:
0
2 [报告]
发表于 2005-10-20 17:36 |只看该作者

为tomcat的CGI郁闷中

没有人知道吗?

论坛徽章:
0
3 [报告]
发表于 2005-10-20 21:22 |只看该作者

为tomcat的CGI郁闷中

awstats不需要web容器也可运行

tomcat不是为CGI运行而设计的,你虽然可以运行,但是急不稳定

论坛徽章:
0
4 [报告]
发表于 2005-10-21 14:17 |只看该作者

为tomcat的CGI郁闷中

恩,真的很不稳定吗?
运行的话会出现什么问题吗

论坛徽章:
0
5 [报告]
发表于 2005-10-22 13:29 |只看该作者

为tomcat的CGI郁闷中

awstats  是依赖于 perl 的,检查一下 perl 是否正确安装,以及 .cgi 的扩展名是否与 perl 联系起来。

论坛徽章:
0
6 [报告]
发表于 2005-10-24 09:46 |只看该作者

为tomcat的CGI郁闷中

$Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java,v 1.12 2003/09/02 22:44:54 amyroh Exp $

CGI script not found or not specified.
Check the HttpServletRequest 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.
ServletRequest Properties
attribute config = config
characterEncoding = GBK
contentLength = -1
contentType = null
locale = zh_CN
parameter config = hehe
protocol = HTTP/1.1
remoteAddr = 192.168.101.250
remoteHost = 192.168.101.250
scheme = http
secure = false
serverName = 192.168.101.103
serverPort = 80

--------------------------------------------------------------------------------

HttpServletRequest Properties
authType = null
contextPath =
header accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
header accept-language = zh-cn
header accept-encoding = gzip, deflate
header user-agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
header host = 192.168.101.103
header connection = Keep-Alive
method = GET
pathInfo = /awstats.cgi
pathTranslated = D:\Program Files\Apache Group\Tomcat 4.1\webapps\web\awstats.cgi
queryString = config=hehe
remoteUser = null
requestedSessionId = null
requestedSessionIdFromCookie = false
requestedSessionIdFromURL = false
requestedSessionIdValid = false
requestURI = /cgi-bin/awstats.cgi
servletPath = /cgi-bin
userPrincipal = null
这是什么错误啊

论坛徽章:
0
7 [报告]
发表于 2005-10-24 10:29 |只看该作者

为tomcat的CGI郁闷中

你在命令行下运行 perl "C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\cgi\awstats.cgi" 看看是什么结果。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP