apache2.0.54 tomcat5.0.28 使用mod_jk连接器无法连接问题,急!!!!!!!!

bulletvsbomb 2006-12-14 05:11:38
在整合apache2.0.54和tomcat5.0.28时从网上下载了mod_jk-1.2.14-apache-2.0.54 然后将它复制到Apache2/modules里面,并且把文件名改为mod_jk.so,在conf/目录里面增加了mod_jk.conf 里面的内容是:
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%W %V %T"
# Send servlet for context /examples to worker named ajp13
#JkMount /servlet/* ajp13
# Send JSPs for context /examples to worker named ajp13
JkMount /*.jsp ajp13

然后又在httpd.conf中加入了 include "D:/Apache/Apache2/conf/mod_jk.conf"

又在/conf目录下写了work.properties文件 内容为
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost #本机,若上面的主机不为localhost ,做相应的修改
worker.ajp13.type=ajp13 #类型
worker.ajp13.lbfactor=1 #代理数,不用修改


然后在启动apache的时候就启动不了,我完全按照书上的操作步骤来的,不知道为什么,各位大虾帮忙啊!!!!!!
已经郁闷了一个下午了...


我用Test configuration 看到如下的错误:
syntax error on line 2 of D:/Apache/Apache2/conf/mod_jk.conf:
cannot load D:/Apache/Apache2/modules/mod_jk.so into server

刚才看了LOGS中的内容,没看出什么东西来logs/error中的内容如下:
[Thu Dec 14 14:14:11 2006] [notice] Apache/2.0.54 (Win32) configured -- resuming normal operations
[Thu Dec 14 14:14:11 2006] [notice] Server built: Apr 16 2005 14:25:31
[Thu Dec 14 14:14:11 2006] [notice] Parent: Created child process 3564
[Thu Dec 14 14:14:11 2006] [notice] Child 3564: Child process is running
[Thu Dec 14 14:14:11 2006] [notice] Child 3564: Acquired the start mutex.
[Thu Dec 14 14:14:11 2006] [notice] Child 3564: Starting 250 worker threads.
[Thu Dec 14 14:19:37 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Dec 14 14:19:37 2006] [notice] Child 3564: Exit event signaled. Child process is ending.
[Thu Dec 14 14:19:38 2006] [notice] Child 3564: Released the start mutex
[Thu Dec 14 14:19:39 2006] [notice] Child 3564: Waiting for 250 worker threads to exit.
[Thu Dec 14 14:19:39 2006] [notice] Child 3564: All worker threads have exited.
[Thu Dec 14 14:19:39 2006] [notice] Child 3564: Child process is exiting
[Thu Dec 14 14:19:39 2006] [notice] Parent: Child process exited successfully.
[Thu Dec 14 14:42:40 2006] [notice] Apache/2.0.54 (Win32) configured -- resuming normal operations
[Thu Dec 14 14:42:40 2006] [notice] Server built: Apr 16 2005 14:25:31
[Thu Dec 14 14:42:40 2006] [notice] Parent: Created child process 2288
[Thu Dec 14 14:42:40 2006] [notice] Child 2288: Child process is running
[Thu Dec 14 14:42:40 2006] [notice] Child 2288: Acquired the start mutex.
[Thu Dec 14 14:42:40 2006] [notice] Child 2288: Starting 250 worker threads.
[Thu Dec 14 14:44:00 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Dec 14 14:44:00 2006] [notice] Child 2288: Exit event signaled. Child process is ending.
[Thu Dec 14 14:44:01 2006] [notice] Child 2288: Released the start mutex
[Thu Dec 14 14:44:02 2006] [notice] Child 2288: Waiting for 250 worker threads to exit.
[Thu Dec 14 14:44:02 2006] [notice] Child 2288: All worker threads have exited.
[Thu Dec 14 14:44:02 2006] [notice] Child 2288: Child process is exiting
[Thu Dec 14 14:44:02 2006] [notice] Parent: Child process exited successfully.
[Thu Dec 14 15:02:40 2006] [notice] Apache/2.0.54 (Win32) configured -- resuming normal operations
[Thu Dec 14 15:02:41 2006] [notice] Server built: Apr 16 2005 14:25:31
[Thu Dec 14 15:02:41 2006] [notice] Parent: Created child process 2232
[Thu Dec 14 15:02:41 2006] [notice] Child 2232: Child process is running
[Thu Dec 14 15:02:41 2006] [notice] Child 2232: Acquired the start mutex.
[Thu Dec 14 15:02:41 2006] [notice] Child 2232: Starting 250 worker threads.
[Thu Dec 14 15:02:54 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Dec 14 15:02:54 2006] [notice] Child 2232: Exit event signaled. Child process is ending.
[Thu Dec 14 15:02:55 2006] [notice] Child 2232: Released the start mutex
[Thu Dec 14 15:02:56 2006] [notice] Child 2232: Waiting for 250 worker threads to exit.
[Thu Dec 14 15:02:56 2006] [notice] Child 2232: All worker threads have exited.
[Thu Dec 14 15:02:56 2006] [notice] Child 2232: Child process is exiting
[Thu Dec 14 15:02:56 2006] [notice] Parent: Child process exited successfully.
[Thu Dec 14 15:24:56 2006] [notice] Apache/2.0.54 (Win32) configured -- resuming normal operations
[Thu Dec 14 15:24:56 2006] [notice] Server built: Apr 16 2005 14:25:31
[Thu Dec 14 15:24:56 2006] [notice] Parent: Created child process 3656
[Thu Dec 14 15:24:56 2006] [notice] Child 3656: Child process is running
[Thu Dec 14 15:24:56 2006] [notice] Child 3656: Acquired the start mutex.
[Thu Dec 14 15:24:57 2006] [notice] Child 3656: Starting 250 worker threads.
[Thu Dec 14 15:27:01 2006] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Dec 14 15:27:01 2006] [notice] Child 3656: Exit event signaled. Child process is ending.
[Thu Dec 14 15:27:01 2006] [notice] Apache/2.0.54 (Win32) configured -- resuming normal operations
[Thu Dec 14 15:27:01 2006] [notice] Server built: Apr 16 2005 14:25:31
[Thu Dec 14 15:27:01 2006] [notice] Parent: Created child process 3356
[Thu Dec 14 15:27:01 2006] [notice] Child 3356: Child process is running
[Thu Dec 14 15:27:02 2006] [notice] Child 3356: Acquired the start mutex.
[Thu Dec 14 15:27:02 2006] [notice] Child 3656: Released the start mutex
[Thu Dec 14 15:27:02 2006] [notice] Child 3356: Starting 250 worker threads.
[Thu Dec 14 15:27:03 2006] [notice] Child 3656: Waiting for 250 worker threads to exit.
[Thu Dec 14 15:27:03 2006] [notice] Child 3656: All worker threads have exited.
[Thu Dec 14 15:27:03 2006] [notice] Child 3656: Child process is exiting
[Thu Dec 14 15:29:18 2006] [error] [client 127.0.0.1] File does not exist: D:/Apache/Apache2/htdocs/jsp-examples
[Thu Dec 14 15:31:05 2006] [error] [client 127.0.0.1] File does not exist: D:/Apache/Apache2/htdocs/jsp-examples
[Thu Dec 14 15:31:10 2006] [error] [client 127.0.0.1] File does not exist: D:/Apache/Apache2/htdocs/jsp-examples
[Thu Dec 14 15:31:13 2006] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Dec 14 15:31:13 2006] [notice] Child 3356: Exit event signaled. Child process is ending.
[Thu Dec 14 15:31:13 2006] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。 : winnt_accept: Asynchronous AcceptEx failed.
[Thu Dec 14 15:31:14 2006] [notice] Child 3356: Released the start mutex
[Thu Dec 14 15:31:15 2006] [notice] Child 3356: Waiting for 250 worker threads to exit.
[Thu Dec 14 15:31:28 2006] [notice] Child 3356: All worker threads have exited.
[Thu Dec 14 15:31:28 2006] [notice] Child 3356: Child process is exiting
...全文
418 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
遇到了你同样的问题,我怎么老是不行呢,你具体的解决办法是什么呢?
bulletvsbomb 2006-12-15
  • 打赏
  • 举报
回复
已经解决这个问题,我将LoadModule jk_module modules/mod_jk.so里面的mod_jk.so改成了别的,然后测试,告诉我不能打开,然后我又换成了mod_jk.so然后就可以了,不知道是怎么回事.还有就是我从网上下载了源码,但是编译通不过,是怎么回事呢?

24,923

社区成员

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

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