You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hans Schmid <Ha...@einsurance.de> on 2001/09/07 09:33:48 UTC

solved AW: worker.properties swallows my first worker (mod_jk)

As Costin pointed out, the error was a cut and paste one.

my worker.list started with

worker.list=worker.list= ajp12....

It should of course be
worker.list=ajp12....

This typo caused interseting effects though ;)


Thanks very much for your help.
Regards,
Hans


> -----Ursprüngliche Nachricht-----
> Von: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> Gesendet: Donnerstag, 6. September 2001 19:39
> An: 'tomcat-user@jakarta.apache.org'
> Betreff: RE: worker.properties swallows my first worker (mod_jk)
>
>
> Hi Hans,
>
> The answers to your questions are:
>
> 1.) Why gets this hardcoded worker on port 8007 created?
>
>     Don't know, I will investigate.
>
> 2.) Is this a Bug I shall report?
>
>    Yes, and please attache the workers.properties in question.
>
> Thanks.
>
> Larry
>
>
> > -----Original Message-----
> > From: Hans Schmid [mailto:Hans.Schmid@einsurance.de]
> > Sent: Thursday, September 06, 2001 12:57 PM
> > To: Tomcat-User
> > Subject: worker.properties swallows my first worker (mod_jk)
> >
> >
> > Hello,
> >
> > This is about mod_jk in Tomcat 3.3b1 on Solaris with Apache 1.3.19
> >
> > It seems to me that the first worker found in the worker.list
> > always gets
> > created as ajp12 on port 8007
> > regardless what i configure.
> >
> > The following worker.list entry
> > worker.list=worker.list=ajp12-01, ajp12-02, ajp13-01, ajp13-02
> >
> > produces 4 workers:
> > ajp12-01 on port 8007  ajp12
> > ajp12-02 on port 9017  ajp12
> > ajp13-01 on port 9009  ajp13
> > ajp13-02 on port 9019  ajp13
> >
> > instead of the expected:
> > ajp12-01 on port 9007  ajp12
> > ajp12-02 on port 9017  ajp12
> > ajp13-01 on port 9009  ajp13
> > ajp13-02 on port 9019  ajp13
> >
> > Please note the ajp12-01 worker points to port 8007 instead of 9007.
> >
> > When I put a space in front of the first worker I get my
> > expected 4 workers
> > pointing to the correct ports
> > plus a 5th worker ('' on port 8007)
> >
> >
> > The following entry in workers.properties
> > worker.list=worker.list= ajp12-01, ajp12-02, ajp13-01, ajp13-02
> >
> > produces 5 workers instead of 4
> > Please note the port 8007 for the first worker named
> > worker.list= of ajp12
> > I do not have a worker assigned to this port (greped through
> > all config
> > files).
> >
> >
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (207)]: Into
> > build_worker_map,
> > creating 5 workers
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (213)]:
> > build_worker_map, creating
> > worker worker.list=
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (138)]: Into wc_create_worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (152)]:
> > wc_create_worker, about to
> > create instance worker.list= of ajp12
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (264)]: Into
> > ajp12_worker_factory
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (161)]:
> > wc_create_worker, about to
> > validate and init worker.list=
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (182)]: Into
> > jk_worker_t::validate
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (194)]: In
> > jk_worker_t::validate for worker worker.list= contact is
> > localhost:8007
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (177)]:
> > wc_create_worker, done
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (223)]:
> > build_worker_map, removing
> > old worker.list= worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (213)]:
> > build_worker_map, creating
> > worker ajp12-01
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (138)]: Into wc_create_worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (152)]:
> > wc_create_worker, about to
> > create instance ajp12-01 of ajp12
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (264)]: Into
> > ajp12_worker_factory
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (161)]:
> > wc_create_worker, about to
> > validate and init ajp12-01
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (182)]: Into
> > jk_worker_t::validate
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (194)]: In
> > jk_worker_t::validate for worker ajp12-01 contact is localhost:9007
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (177)]:
> > wc_create_worker, done
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (223)]:
> > build_worker_map, removing
> > old ajp12-01 worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (213)]:
> > build_worker_map, creating
> > worker ajp12-02
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (138)]: Into wc_create_worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (152)]:
> > wc_create_worker, about to
> > create instance ajp12-02 of ajp12
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (264)]: Into
> > ajp12_worker_factory
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (161)]:
> > wc_create_worker, about to
> > validate and init ajp12-02
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (182)]: Into
> > jk_worker_t::validate
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp12_worker.c (194)]: In
> > jk_worker_t::validate for worker ajp12-02 contact is localhost:9017
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (177)]:
> > wc_create_worker, done
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (223)]:
> > build_worker_map, removing
> > old ajp12-02 worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (213)]:
> > build_worker_map, creating
> > worker ajp13-01
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (138)]: Into wc_create_worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (152)]:
> > wc_create_worker, about to
> > create instance ajp13-01 of ajp13
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp13_worker.c (882)]: Into
> > ajp13_worker_factory
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (161)]:
> > wc_create_worker, about to
> > validate and init ajp13-01
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp13_worker.c (412)]: Into
> > jk_worker_t::validate
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp13_worker.c (425)]: In
> > jk_worker_t::validate for worker ajp13-01 contact is localhost:9009
> > [Thu Sep 06 18:26:17 2001]  [jk_ajp13_worker.c (451)]: Into
> > jk_worker_t::init
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (177)]:
> > wc_create_worker, done
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (223)]:
> > build_worker_map, removing
> > old ajp13-01 worker
> > [Thu Sep 06 18:26:17 2001]  [jk_worker.c (213)]:
> > build_worker_map, creating
> > worker ajp13-02
> >
> > and one ajp13-02 on port 9019
> >
> >
> > My questions:
> > 1.) Why gets this hardcoded worker on port 8007 created?
> > 2.) Is this a Bug I shall report?
> >
> > Since I have a work around by putting this space in front of my first
> > worker, I can live with this.
> >
> > Is this a Bug I should put into Bigzilla?
> >
> >
> > Hans Schmid
> >
> > einsurance Agency AG
> > Information Technology
> > Bayerstraße 33
> > 80335 München
> >
> > Tel: +49-89-55292- 860
> > Fax: +49-89-55292- 855
> >
> > eMail: Hans.Schmid@einsurance.de
> > http://www.einsurance.de
> >
>