一个关于apache和tomcat集成的问题
APACHE版本:2.0.44 TOMCAT版本:4.0
HTTPD.conf后面几行关于连接tomact的配置是这样的:
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk_module lib/mod_jk-2.0.42.dll
JkWorkersFile "D:/Tomcat4.0/conf/workers.properties"
JkLogFile "D:/Tomcat4.0/logs/mod_jk2.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
TOMCAT的workers.properties里TOMCAT和JDK的路径也没错。
输入:http://localhost:8080和http://localhost都正常,但是输入http://localhost/hello.jsp却提示:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, yujun@iholley.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/2.0.44 (Win32) mod_jk/1.2.0 Server at localhost Port 80
在日志文件里显示:
[Tue Apr 08 21:02:42 2003] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 61
[Tue Apr 08 21:02:42 2003] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Tue Apr 08 21:02:42 2003] [jk_ajp_common.c (872)]: Error connecting to the Tomcat process.
[Tue Apr 08 21:02:42 2003] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2
这是什么问题呢?