论坛首页 Java企业应用论坛

Win2000尝试apache-2.0.55和tomcat-5.5集成 遇到问题

浏览 5303 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-06-06  
大家好!最近我在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

操作系统 为 WINDOWS 2000
   发表时间:2007-06-06  
请问你的workers.properties放在哪了
0 请登录后投票
   发表时间:2007-06-06  
Apache2\conf 目录下面
0 请登录后投票
   发表时间:2007-06-06  
conf\workers.properties  这样难道不行吗??
0 请登录后投票
   发表时间:2007-06-06  
http://johnturner.com/howto/winxp-howto.html
这篇文章用的jk连接器版本和楼主的比较接近,可以再检查一下

http://www.google.cn/search?client=opera&rls=zh-cn&q=wc_get_worker_for_name,+done+did+not+found+a+worker&sourceid=opera&ie=utf-8&oe=utf-8
0 请登录后投票
   发表时间:2007-06-06  
httpd.conf还需要加入documentroot
0 请登录后投票
   发表时间:2007-06-30  
mod_jk_2.0.46.dll 换成 mod_jk2.so就搞定了 很是奇怪的
呵呵
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics