windows2k professional , apache2.0.43, tomcat4.1.18 ,mod_jk2-2.0.43.dll,页面部分有的可以正常运行,有的却不可以 (急)
apache2.0.43, tomcat4.1.18 ,mod_jk2-2.0.43.dll
配置文件如下:
1)将mod_jk2-2.0.43.dll复制到APACHE安装目录下的modules子目录下,编辑APACHE2的配置文件httpd.conf,在文件的最后加上以下几行。
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/jakarta-tomcat-4.1.12/webapps"
ServerName dummy-host.example.com
DirectoryIndex index.htm index.html index.jsp
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
2)在APACHE2安装目录的conf子目录下加入文件workers2.properties,其内容如下:
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/*]
worker=ajp13:localhost:8009
当然可以在APACHE2的logs目录下建一个空白文件shm.file ,也可以没有!
这样就可以了!
-----------------------------------------------
运行是有的部分可以正常运行,有的却报配置有错,无法正常运行,请问这是什么原因。。。
apache 报错:
.....
[Thu Sep 11 10:58:20 2003] [error] channelSocket.open() connect failed 127.0.0.1:8009 61 Unknown error
[Thu Sep 11 10:58:20 2003] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Sep 11 10:58:21 2003] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error
[Thu Sep 11 10:58:21 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1
[Thu Sep 11 10:58:21 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
.....
tomcat:
.......................
2003-09-11 10:58:09 action: No errors detected, accepting input
2003-09-11 10:58:09 action: Looking for Action instance for class com.grad.query.InputAction
2003-09-11 10:58:09 action: Double checking for Action instance already there
2003-09-11 10:58:09 action: Creating new Action instance