• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is hard to answer on you question without seeing the content of your workers.properties file
 
long meng
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about JkMount?
Did you restart Apache & Tomcat after the changes?
 
long meng
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you have this line?

long meng wrote:wk.worker1.lbfactor=50

 
long meng
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is that matter? although it's deleted, it still doesn't work ...
 
long meng
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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...
 
His brain is the size of a cherry pit! About the size of this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic