Hey André, Thanks for quick suggestion. Actually the problem was lying in my text editor in which I m editing my worker.properties files...some how it adds few special characters in the file.I found when I opened the same file in notepad. Now its working properly after removing those unwanted chars.
Thanks, Pushkar -----Original Message----- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, September 09, 2010 6:27 PM To: Tomcat Users List Subject: Re: mod_jk not creating worker other than ajp13 Pushkar Tiwari wrote: > Hi All, > > I am trying to connect Tomcat 6.0.16 with Apache 2.2.16 through mod_jk 1.2.30 > on Win XP service pack 3 32 bit platform. > > I have followed following steps: > > > * Placing mod_jk.so into apache/modules. > * Creating mod_jk.conf & workers.properties files in apache/conf > * Modifying https.conf and including mod_jk.conf (only add -> Include > conf/mod_jk.conf) > * Content of mod_jk.conf is as follows: > > # mod_jk.conf start > LoadModule jk_module modules/mod_jk.so > > JkWorkersFile conf/workers.properties > JkLogFile logs/mod_jk.log > JkLogLevel debug > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > JkRequestLogFormat "%w %V %T" > > JkMount /TestLB1 jvm1 > JkMount /TestLB1/* jvm1 > > JkShmFile logs/jk.shm > # mod_jk.conf end > > > * Content of workers.properties is as follows: > > worker.list=jvm1 > worker.jvm1.port=8009 > worker.jvm1.host=localhost > worker.jvm1.type=ajp13 > > > * In tomcat's server.xml I have a ajp connector > > <Connector port="8009" enableLookups="false" protocol="AJP/1.3" > redirectPort="8443"/> > > Everything starts well except mod_jk, logs are as follow: > > [debug] jk_worker.c (242): creating worker ajp13 > [debug] jk_worker.c (146): about to create instance ajp13 of ajp13 > [debug] jk_worker.c (159): about to validate and init ajp13 > [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' > [debug] jk_ajp_common.c (2800): setting endpoint options: > [debug] jk_ajp_common.c (2803): keepalive: 0 > [debug] jk_ajp_common.c (2807): socket timeout: 0 > [debug] jk_ajp_common.c (2811): socket connect timeout: 0 > [debug] jk_ajp_common.c (2815): buffer size: 0 > [debug] jk_ajp_common.c (2819): pool timeout: 0 > [debug] jk_ajp_common.c (2823): ping timeout: 10000 > [debug] jk_ajp_common.c (2827): connect timeout: 0 > [debug] jk_ajp_common.c (2831): reply timeout: 0 > [debug] jk_ajp_common.c (2835): prepost timeout: 0 > [debug] jk_ajp_common.c (2839): recovery options: 0 > [debug] jk_ajp_common.c (2843): retries: 2 > [debug] jk_ajp_common.c (2847): max packet size: 8192 > [debug] jk_ajp_common.c (2851): retry interval: 100 > [info] mod_jk.c (3189): mod_jk/1.2.30 initialized > [debug] jk_worker.c (116): did not find a worker jvm1 > [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in > uri map post processing. > [debug] jk_worker.c (116): did not find a worker jvm1 > [error] jk_uri_worker_map.c (506): Could not find worker with name 'jvm1' in > uri map post processing. > > And If I use worker name ajp13 which is default one it always works,I don't > understand why its always going to create worker name ajp13 for localhost & > port 8009 which is default one despite of my custom worker name. > Any suggestions? > I think that your configuration files above are OK. But it looks as if Apache is not reading the "workers.properties" file that you think it is reading. It seems to be reading another one, with the lines > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 Try this experiment : in the "workers.properties" file that you think Apache is using, put the following lines : > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=unknown.host.local > worker.ajp13.type=ajp13 then try again and look at the logs. If it still shows the line : > [debug] jk_ajp_common.c (2605): worker ajp13 contact is 'localhost:8009' then it means it is not reading the new file. If it shows the line > [debug] jk_ajp_common.c (2605): worker ajp13 contact is > 'unknown.host.local:8009' then I am wrong. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org