一个关于apache和tomcat集成的问题

smallfishjun 2003-04-08 09:19:59
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

这是什么问题呢?
...全文
82 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Arong2001 2003-04-27
  • 打赏
  • 举报
回复
由于APACHE版本为:2.0.44
好像要用workers2.properties
某鸟 2003-04-09
  • 打赏
  • 举报
回复
Apache/2.0.44 (Win32) mod_jk/1.2.0 Server at localhost Port 80

apche2.0.44应该和mod_jk-2.0.43.dll(mod_jk/1.2.2)对应。
某鸟 2003-04-09
  • 打赏
  • 举报
回复
检查tomcat是否启动成功。
检查mod_jk版本是否和apache相对应。

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧