File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes tomcat5.5.27+apache2.2.4+mod_jk-1.2.28-httpd-2.2.3.so Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat5.5.27+apache2.2.4+mod_jk-1.2.28-httpd-2.2.3.so" Watch "tomcat5.5.27+apache2.2.4+mod_jk-1.2.28-httpd-2.2.3.so" New topic
Author

tomcat5.5.27+apache2.2.4+mod_jk-1.2.28-httpd-2.2.3.so

long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
hello everyone, i have a problem when i config the workers.properties.

the value of workers.list can only be set to "ajp13", when i try to change it to anything else(like worker1), it will get a 500 error.

and in the mod_jk.log, report is like this "[error] jk_uri_worker_map.c (506): Could not find worker with name 'worker2' in uri map post processing."

why i can't change the value?


SCJP 5.0 98%<br />SCWCD 5.0 in progress . . .
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
It is hard to answer on you question without seeing the content of your workers.properties file
long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
this is my workers.properties file,if i change "worker1" to "ajp13" , it works; if like the code below, it doesn't work

ps=\
wk.list=worker1
wk.worker1.port=8009
wk.worker1.host=83.10.31.20
wk.worker1.type=ajp13
wk.worker1.lbfactor=50
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
How about JkMount?
Did you restart Apache & Tomcat after the changes?
long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
LoadModule jk_module modules/mod_jk.so
#JkWorkersFile "D:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\workers.properties"
JkWorkersFile "D:\Program Files\Apache Software Foundation\Apache2.2\conf\workers.properties"
JkMount /*.do worker1
JkMount /*.jsp worker1

and i have already restarted apache and tomcat.

mok_jk.log:

[Sun Aug 23 18:09:43.390 2009] [364:2468] [error] jk_uri_worker_map.c (506): Could not find worker with name 'worker1' in uri map post processing.
[Sun Aug 23 18:09:43.390 2009] [364:2468] [error] jk_uri_worker_map.c (506): Could not find worker with name 'worker1' in uri map post processing.
[Sun Aug 23 18:09:57.640 2009] [364:5724] [info] mod_jk.c (2623): Could not find a worker for worker name=worker1
[Sun Aug 23 18:10:06.703 2009] [364:5724] [info] mod_jk.c (2623): Could not find a worker for worker name=worker1
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Why do you have this line?

long meng wrote:wk.worker1.lbfactor=50
long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
is that matter? although it's deleted, it still doesn't work ...
long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
and here is the logs

mod_jk.log:
[Mon Aug 24 17:00:20.656 2009] [3964:1348] [info] jk_connect.c (594): connect to 127.0.0.1:8009 failed (errno=61)
[Mon Aug 24 17:00:20.656 2009] [3964:1348] [info] jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=61)
[Mon Aug 24 17:00:20.656 2009] [3964:1348] [error] jk_ajp_common.c (1507): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Mon Aug 24 17:00:20.656 2009] [3964:1348] [info] jk_ajp_common.c (2447): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Mon Aug 24 17:00:21.859 2009] [3964:1348] [info] jk_connect.c (594): connect to 127.0.0.1:8009 failed (errno=61)
[Mon Aug 24 17:00:21.859 2009] [3964:1348] [info] jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=61)
[Mon Aug 24 17:00:21.859 2009] [3964:1348] [error] jk_ajp_common.c (1507): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Mon Aug 24 17:00:21.859 2009] [3964:1348] [info] jk_ajp_common.c (2447): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Mon Aug 24 17:00:21.859 2009] [3964:1348] [error] jk_ajp_common.c (2466): (ajp13) connecting to tomcat failed.
[Mon Aug 24 17:00:21.859 2009] [3964:1348] [info] mod_jk.c (2615): Service error=-3 for worker=ajp13


access.log
83.10.31.20 - - [24/Aug/2009:17:00:19 +0800] "GET /Fenye/form/logon.jsp HTTP/1.1" 503 323

why it tried to connect 127.0.0.1:8009, while i set wk.ajp13.host=83.10.31.20?
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
long meng wrote:why it tried to connect 127.0.0.1:8009, while i set wk.ajp13.host=83.10.31.20?


Most likely you have some other settings somewhere
long meng
Ranch Hand

Joined: Oct 10, 2008
Posts: 58
Misha Ver wrote:
long meng wrote:why it tried to connect 127.0.0.1:8009, while i set wk.ajp13.host=83.10.31.20?


Most likely you have some other settings somewhere


so where is it? anybody help...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat5.5.27+apache2.2.4+mod_jk-1.2.28-httpd-2.2.3.so
 
Similar Threads
Groovy Puzzler
variable assignment
SOAPConnection call with ip address
JTextField validation / Document Listener
Convert Hex byte to ASCII