apache2.0.54 tomcat5.0.28 使用mod_jk连接器无法连接问题,急!!!!!!!!
在整合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