日期:2014-05-16  浏览次数:20956 次

Win2000尝试apache-2.0.55和tomcat-5.5集成 遇到问题
大家好!最近我在Win2000环境下尝试apache-2.0.55和tomcat-5.5集成的过程中,安装好后,访问http://localhost/index.jsp,却无法打开Tomcat的默认主页,而单独访问http://localhost或http://localhost:8080却可以访问apache 和tomcat的默认主页。

我用的插件为:mod_jk_2.0.46.dll,

workers.properties文件内容如下:
    workers.tomcat_home=C:\Tomcat 5.5
  #让mod_jk模块知道Tomcat
  workers.java_home=C:\Program Files\Java\jdk1.5.0_09
  #让mod_jk模块知道j2sdk
  ps=\  
    #指定文件路径分割符
  worker.list=worker1
  worker.worker1.port=8009
  #工作端口,若没占用则不用修改
  worker.worker1.host=localhost
  #Tomcat服务器的地址
  worker.worker1.type=ajp13
  #类型
  worker.worker1.lbfactor=1
  #负载平衡因数



httpd.conf文档中加入的内容:
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk_module modules\mod_jk_2.0.46.dll
JkWorkersFile "conf\workers.properties"
JkLogFile "logs\mod_jk2.log"
JkLogLevel debug
JkMount /*.jsp loadbalancer
JkMount /helloapp/* loadbalancer

以下为log文档的出错记录:[Wed Jun 06 16:15:55 2007]  [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:55 2007]  [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:55 2007]  [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:55 2007]  [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5600128 worker=worker1
[Wed Jun 06 16:15:55 2007]  [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:55 2007]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:56 2007]  [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5616664 worker=worker1
[Wed Jun 06 16:15:56 2007]  [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:56 2007]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:56 2007]  [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5600128 worker=worker1
[Wed Jun 06 16:15:56 2007]  [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:56 2007]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp'
[Wed Jun 06 16:15:56 2007]  [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match worker1 -> *.jsp
[Wed Jun 06 16:15:56 2007]  [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=5616664 worker=worker1
[Wed Jun 06 16:15:56 2007]  [jk_worker.c (132)]: Into wc_get_worker_for_name worker1
[Wed Jun 06 16:15:56 2007]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker

操作系统 为 W