本文介绍了阿帕奇的httpd的2.2.x + mod_jk的1.2.30 + tomcat的6错误:无法与名称URI地图后处理“XXXXX”找工的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误,同时有两个Tomcat实例设置负载均衡:

I am getting the following error while setting up the load balancer with two Tomcat instances:

[信息] mod_jk.c(3189):MOD_JK / 1.2.30初始化
  [错误] jk_uri_worker_map.c(506):找不到在URI地图后处理的名字'loadmanager工人

以下是我的配置设置:

httpd.conf中的变化

httpd.conf changes

# Include mod_jk configuration file
Include conf/mod_jk.conf

mod_jk.conf

mod_jk.conf

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat  "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /TestLB1/ loadmanager
JkMount /TestLB1/* loadmanager
JkShmFile logs/jk.shm

workers.properties

workers.properties

worker.list=loadmanager

worker.tomcat1.port=18081
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.tomcat2.port=28081
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1

worker.loadmanager.type=lb
worker.loadmanager.balance_workers=tomcat1,tomcat2
worker.loadmanager.sticky_session=True

在Tomcat的server.xml中我见的jvmRoute属性设置为引擎还

In Tomcat's server.xml I have set the jvmRoute attribute to Engine also

 <Engine defaultHost="localhost" name="Catalina" jvmRoute="tomcat1">
 <Engine defaultHost="localhost" name="Catalina" jvmRoute="tomcat2">

这两个Tomcat实例启动并运行罚款AJP端口18081&安培; 28081分别。

Both the Tomcat instances are up and running fine with AJP ports 18081 & 28081 respectively.

不过,虽然启动了Apache httpd.exe的mod_jk的日志文件始终显示上面的错误,当我试图通过没有出现

But while starting the Apache httpd.exe the mod_jk log files always shows the above error, and when I try to access my web app through http://localhost/TestLB1 nothing comes up.

任何解决方案?

推荐答案

得到了问题....
问题是在我编辑我worker.properties文件中的文本编辑器,它增加了一些特殊字符的文件。
我发现他们时,我只在记事本运行结束的文件。
删除所有不必要的字符万物后运行完美。

Got the problem....Issues is with the text editor in which i was editing my worker.properties file , it adds few special chars to files.I found them when i opend the files in notepad only.After removing all unwanted chars everythings works perfect.

这篇关于阿帕奇的httpd的2.2.x + mod_jk的1.2.30 + tomcat的6错误:无法与名称URI地图后处理“XXXXX”找工的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 08:55