You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nicholas Bernstein <ni...@docmagic.com> on 2004/02/09 20:33:11 UTC

done did not found a worker

I'm hoping someone can give me a bit of insight as to what I might be
doing wrong with connecting Apache V.2 w/ Tomcat V.4 using mod_jk
v1.2.5. It looks like apache is trying to talk to tomcat when is sees
that /examples/ is supposed to be handled by tomcat via mod_jk but when
mod_jk tries to use ajp13 to talk to tomcat, it gets confused, and
addition, so do I. :) 

Instead of putting a boat-load of logs and config files in this email,
I've put them on the web @: http://nicholasbernstein.com/tomcat/
Hopefully, that will be more convenient for anyone who is willing to
take a look. 

The mod_jk.log error is:
        [Fri Feb 06 17:18:20 2004]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
        [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
        [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c (500)]: Attempting to map URI '/examples/'
        [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c (514)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 -> /examples/
        [Fri Feb 06 17:21:02 2004]  [mod_jk.c (1709)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=136692072 worker=ajp13
        [Fri Feb 06 17:21:02 2004]  [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
        [Fri Feb 06 17:21:02 2004]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker

Any help would be appreciated; I've gone through a decent portion of the
mailing list archives, as well as google, but the only thing I could
find was making workers.properties be a minimal:

	worker.list=ajp13 
	worker.ajp13.type=ajp13 
	worker.ajp13.host=localhost 
	worker.ajp13.port=8009

unfortunately making that change did not modify the error in any way. 

-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by Sergio <Ap...@yandex.ru>.
Hello, Nicholas.

Maybe I'm wrong that I give you this config, but it works on my
system (Win2003) (the part about pathes I've used before, and about
balancers i've find in the web-documentation):
# Start config--------->
worker.ajp13.type=ajp13
# more than 1
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.tomcat_home="C:\apache2\tomcat5.0.18"
worker.java_home="C:\apache2\j2sdk1.4.2_03"
ps=\  #for Win, for Unix => /
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
# End config--------->

It was Tomcat 4.xx and now its 5.0.18.
If somebody can give comments or suggestions I'll be apreciated too.
Thanks and good luck.


NB> I'm hoping someone can give me a bit of insight as to what I might be
NB> doing wrong with connecting Apache V.2 w/ Tomcat V.4 using mod_jk
NB> v1.2.5. It looks like apache is trying to talk to tomcat when is sees
NB> that /examples/ is supposed to be handled by tomcat via mod_jk but when
NB> mod_jk tries to use ajp13 to talk to tomcat, it gets confused, and
NB> addition, so do I. :) 

NB> Instead of putting a boat-load of logs and config files in this email,
NB> I've put them on the web @: http://nicholasbernstein.com/tomcat/
NB> Hopefully, that will be more convenient for anyone who is willing to
NB> take a look. 

NB> The mod_jk.log error is:
NB>         [Fri Feb 06 17:18:20 2004]  [jk_worker.c (136)]:
NB> wc_get_worker_for_name, done did not found a worker
NB>         [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c
NB> (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
NB>         [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c
NB> (500)]: Attempting to map URI '/examples/'
NB>         [Fri Feb 06 17:21:02 2004]  [jk_uri_worker_map.c
NB> (514)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact
NB> match ajp13 -> /examples/
NB>         [Fri Feb 06 17:21:02 2004]  [mod_jk.c (1709)]: Into
NB> handler r->proxyreq=0 r->handler=jakarta-servlet
NB> r->notes=136692072 worker=ajp13
NB>         [Fri Feb 06 17:21:02 2004]  [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
NB>         [Fri Feb 06 17:21:02 2004]  [jk_worker.c (136)]:
NB> wc_get_worker_for_name, done did not found a worker

NB> Any help would be appreciated; I've gone through a decent portion of the
NB> mailing list archives, as well as google, but the only thing I could
NB> find was making workers.properties be a minimal:

NB> 	worker.list=ajp13 
NB> 	worker.ajp13.type=ajp13 
NB> 	worker.ajp13.host=localhost 
NB> 	worker.ajp13.port=8009

NB> unfortunately making that change did not modify the error in any way.




-- 
Sincerely yours,
 Sergio                          mailto:Apache-Tomcat@yandex.ru


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
> 
> <Service name="Tomcat-Standalone">
>      <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>                 port="8009" minProcessors="50" maxProcessors="75"
>                 acceptCount="25" buffersize="16384" debug="0"/>
>      <Engine name="Standalone" defaultHost="localhost" debug="0" 
> jvmRoute="test01">  <-------------------------- HERE
> 
> -Dave

cool. I had that part configured correctly. 

-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by David O'Brien <do...@naccrra.org>.
At 02:24 PM 2/10/2004, you wrote:
>On Mon, 2004-02-09 at 20:23, David OBrien wrote:
> > At 09:26 PM 2/9/2004, Nicholas Bernstein wrote:
> > >On Mon, 2004-02-09 at 17:37, David Rees wrote:
> > > > On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
> > > > >
> > > > > Give up trying to use Apache2 with mod_jk.  After spending days 
> on the
> > > > > message boards trying to solve this one, I was ultimately told by the
> > > > > so-called "experts" that  "I had a network configuration problem 
> and that
> > > > > some process was likely to be either already using or blocking port
> > > 8009".
> > > >
> > > > Hmm, I've had no problems at all using mod_jk with Apache2 on both 
> various
> > > > Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)
> > > >
> > > > -Dave
> > >
> > >if you've got a minute, take a look @ the configs I posted
> > >http://nicholasbernstein.com/tomcat/
> >
> > Are you using workers2.properties with mod_jk and not mod_jk2 ??
> >
> > JkWorkersFile /etc/httpd/conf/workers2.properties
> > change to workers.properties
>
>Thanks, that was from a previous configuration that I forgot to edit
>when putting on the web.
>
>
> >
> > Also I have had to define a lvmroute in my server.xml that is the same 
> name
> > as the named worker in your case ajp13
> >
>
>Could you please clarify that?
>do you mean
><lvmroute>ajp13</lvmroute> somewhere in server.xml, or does it need to
>be in a specific place?

I meant jvmroute sorry

<Service name="Tomcat-Standalone">
     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
                port="8009" minProcessors="50" maxProcessors="75"
                acceptCount="25" buffersize="16384" debug="0"/>
     <Engine name="Standalone" defaultHost="localhost" debug="0" 
jvmRoute="test01">  <-------------------------- HERE

-Dave







> > -Dave
> >
> >
> > >and let me know if you see anything wrong with the setup. I'd rather
> > >stick to apache2; i'm using redhat ES and it looks like they've made a
> > >lot of RH specific patches to httpd source, so it probably performs a
> > >lot better that compiling 1.x from source.
> > >
> > >
> > >
> > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >--
> > >+---------------------------------------------------------------+
> > >| Nicholas Bernstein            | nick@docmagic.com             |
> > >| UNIX Systems Administrator    | http://www.docmagic.com       |
> > >| Document Systems Inc.         |                               |
> > >| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3        |
> > >+---------------------------------------------------------------+
>--
>+---------------------------------------------------------------+
>| Nicholas Bernstein            | nick@docmagic.com             |
>| UNIX Systems Administrator    | http://www.docmagic.com       |
>| Document Systems Inc.         |                               |
>| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3        |
>+---------------------------------------------------------------+


David G. O'Brien
Web Services Coordinator / Systems Administrator

NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


tldCache.ser

Posted by Pete Stokes <st...@quinn-direct.com>.
Hi.

What is this file / what does it do ?

Thanks,
Pete.


***********************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
***********************************************************************************
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
On Mon, 2004-02-09 at 20:23, David OBrien wrote:
> At 09:26 PM 2/9/2004, Nicholas Bernstein wrote:
> >On Mon, 2004-02-09 at 17:37, David Rees wrote:
> > > On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
> > > >
> > > > Give up trying to use Apache2 with mod_jk.  After spending days on the
> > > > message boards trying to solve this one, I was ultimately told by the
> > > > so-called "experts" that  "I had a network configuration problem and that
> > > > some process was likely to be either already using or blocking port 
> > 8009".
> > >
> > > Hmm, I've had no problems at all using mod_jk with Apache2 on both various
> > > Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)
> > >
> > > -Dave
> >
> >if you've got a minute, take a look @ the configs I posted
> >http://nicholasbernstein.com/tomcat/
> 
> Are you using workers2.properties with mod_jk and not mod_jk2 ??
> 
> JkWorkersFile /etc/httpd/conf/workers2.properties
> change to workers.properties

Thanks, that was from a previous configuration that I forgot to edit
when putting on the web. 


> 
> Also I have had to define a lvmroute in my server.xml that is the same name 
> as the named worker in your case ajp13
> 

Could you please clarify that? 
do you mean
<lvmroute>ajp13</lvmroute> somewhere in server.xml, or does it need to
be in a specific place?


> -Dave
> 
> 
> >and let me know if you see anything wrong with the setup. I'd rather
> >stick to apache2; i'm using redhat ES and it looks like they've made a
> >lot of RH specific patches to httpd source, so it probably performs a
> >lot better that compiling 1.x from source.
> >
> >
> >
> >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >--
> >+---------------------------------------------------------------+
> >| Nicholas Bernstein            | nick@docmagic.com             |
> >| UNIX Systems Administrator    | http://www.docmagic.com       |
> >| Document Systems Inc.         |                               |
> >| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3        |
> >+---------------------------------------------------------------+
-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by David OBrien <do...@naccrra.org>.
At 09:26 PM 2/9/2004, Nicholas Bernstein wrote:
>On Mon, 2004-02-09 at 17:37, David Rees wrote:
> > On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
> > >
> > > Give up trying to use Apache2 with mod_jk.  After spending days on the
> > > message boards trying to solve this one, I was ultimately told by the
> > > so-called "experts" that  "I had a network configuration problem and that
> > > some process was likely to be either already using or blocking port 
> 8009".
> >
> > Hmm, I've had no problems at all using mod_jk with Apache2 on both various
> > Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)
> >
> > -Dave
>
>if you've got a minute, take a look @ the configs I posted
>http://nicholasbernstein.com/tomcat/

Are you using workers2.properties with mod_jk and not mod_jk2 ??

JkWorkersFile /etc/httpd/conf/workers2.properties
change to workers.properties

JkLogFile /var/log/httpd/mod_jk.log

In your...

workers.properties:
         workers.tomcat_home=/u/internet/tomcat/
         workers.java_home=/usr/java/
         ps=/
         worker.list=ajp13
*******
         worker.ajp12.lbfactor=1
         13 NOT 12
*******
         worker.ajp13.port=8009
         worker.ajp13.host=localhost
         worker.ajp13.type=ajp13
         worker.loadbalancer.type=lb
         wporker.loadbalancer.balanced_workers= ajp13
         worker.inprocess.type
         worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
         worker.inprocess.cmd_line=start
         worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so
         worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
         worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

Also I have had to define a lvmroute in my server.xml that is the same name 
as the named worker in your case ajp13

-Dave


>and let me know if you see anything wrong with the setup. I'd rather
>stick to apache2; i'm using redhat ES and it looks like they've made a
>lot of RH specific patches to httpd source, so it probably performs a
>lot better that compiling 1.x from source.
>
>
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>--
>+---------------------------------------------------------------+
>| Nicholas Bernstein            | nick@docmagic.com             |
>| UNIX Systems Administrator    | http://www.docmagic.com       |
>| Document Systems Inc.         |                               |
>| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3        |
>+---------------------------------------------------------------+

Re: done did not found a worker

Posted by Charles Daniel <da...@hotmail.com>.
Dear Nicholas,

I'll look at it when I get a chance, but be warned - I used the auto config feature when mine failed.  To make a long story short, Tomcat automatically generates the config in it's own conf directory ("$CATALINA_HOME/conf/auto") whenever I ran startup.sh.

If Tomcats own auto config blows up then what chance does you human edited conf stand in the diabolical world of Apache2.  When that failed I reinstalled everything and used an edited httpd.conf as you are doing now. I got the same results both ways.

Osensei
daniel_charles@hotmail.com<ma...@hotmail.com>

  ----- Original Message ----- 
  From: Nicholas Bernstein<ma...@docmagic.com> 
  To: Tomcat Users List<ma...@jakarta.apache.org> 
  Sent: Monday, February 09, 2004 8:26 PM
  Subject: Re: done did not found a worker


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
On Mon, 2004-02-09 at 23:48, David Rees wrote:
> Dwayne Ghant wrote, On 2/9/2004 7:02 PM:
> 
> > Dave, I have been having semular issues would it be impossible for to 
> > post the four files listed below:
> > 
> > 1. http.conf
> > 2. ssl.conf
> > 3. server.xml
> > 4. workers2.properties
> 
> Here's a sample for setting up Apache.  This will work on either Apache 
> 2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat will 
> work, use the example connector config included with every default 
> server.xml as it varies a little between Tomcat versions.
> 
> httpd.conf
> # This only shows the portions relevant to mod_jk, you should stick the
> # lines somewhere in your config file.  This config also works for
> # Apache 1.3.X as well as Apache 2.0.X.
> -------
> LoadModule jk_module modules/mod_jk.so
> 
> JkWorkersFile <path-to-apache-conf>/tomcat_workers.properties
> JkLogFile <path-to-apache-logs>/mod_jk.log
> JkLogLevel error
> 
> <VirtualHost *:80>
>      ServerName www.example.com
>      JkMount /*.jsp tomcat
>      JkMount /servlet/* tomcat
> </VirtualHost>
> -------
> 
> <path-to-apache-conf>/tomcat_workers.properties
> -------
> worker.list=tomcat
> worker.tomcat.port=8007
> worker.tomcat.host=localhost
> worker.tomcat.type=ajp13
> -------
> 
> That's it!
> 
> -Dave
>   aka the mod_jk "expert"
>   NOT a mod_jk2 "expert"!
> 

Damn. 
That worked. 
Now I've just got to go through both of the old workers.properties that
I was using and see if I can figure out what broke it before. 

Thanks a lot! Send me a shipping address and I'll send you some
http://www.internetwines.com/rws27533.html monty python's holy "ail" by
way of thanks.


-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by Dwayne Ghant <dg...@temple.edu>.
I have tried to go to http://jakarta.apache.org/site/binindex.cgi and 
download
mod_jk 1.2 , it's not available. Does anybody know how I can get mod_jk1.2 ?

David O'Brien wrote:

> If you are using mod_jk and NOT mod_jk2 then this file's content makes 
> no difference in your configuration.
> You need to tell apache to use the workers.properties NOT the 
> workers2.properties in your httpd.conf file
> -Dave
>
>
> At 11:58 AM 2/10/2004, you wrote:
>
>> But Dave you didn't address this stuff below?
>> I think this is where I'm having the most problems.
>>
>> ##=====================================
>> ##Other needed configuratoin(s)
>> ##=====================================
>> ##define the shared memory file
>>
>> [shm]
>> file=/usr/local/tomcat-4.1.24/work/jk2.shm
>> file=1048576
>>
>> ## Define the communication channel
>>
>> [channel.socket:localhost:8009]
>> #tomcatId=localhost:8009
>> port=8009
>> host=127.0.0.1
>>
>> #define the worker
>> [balance_all_workers:localhost:8009]
>> channel=channel.socket:localhost:8009
>>
>>
>>
>>
>> #Uri mapping
>> [uri:saturn.temple.edu/examples/*]
>> #worker=ajp13:localhost:8009
>> worker=balance_all_workers:localhost:8009
>>
>> [uri:saturn.temple.edu/developers/*]
>> #worker=ajp13:localhost:8009
>> worker=balance_all_workers:localhost:8009
>>
>> [uri:saturn.temple.edu/product/*]
>> #worker=ajp13:localhost:8010
>> worker=balance_all_workers:localhost:8010
>>
>> [uri:saturn.temple.edu/uPortal/*]
>> #worker=ajp13:localhost:8010
>> worker=balance_all_workers:localhost:8010
>>
>>
>> #[status:]
>>
>> #info=Status worker, displays runtime information
>> channel=channel.socket:localhost:8009
>>
>> #[uri:/status/*]
>> #worker=status:localhost:8009
>> #group=status:
>>
>>
>> David Rees wrote:
>>
>>> Dwayne Ghant wrote, On 2/9/2004 7:02 PM:
>>>
>>>> Dave, I have been having semular issues would it be impossible for 
>>>> to post the four files listed below:
>>>>
>>>> 1. http.conf
>>>> 2. ssl.conf
>>>> 3. server.xml
>>>> 4. workers2.properties
>>>
>>>
>>>
>>> Here's a sample for setting up Apache.  This will work on either 
>>> Apache 2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of 
>>> Tomcat will work, use the example connector config included with 
>>> every default server.xml as it varies a little between Tomcat versions.
>>>
>>> httpd.conf
>>> # This only shows the portions relevant to mod_jk, you should stick the
>>> # lines somewhere in your config file.  This config also works for
>>> # Apache 1.3.X as well as Apache 2.0.X.
>>> -------
>>> LoadModule jk_module modules/mod_jk.so
>>>
>>> JkWorkersFile <path-to-apache-conf>/tomcat_workers.properties
>>> JkLogFile <path-to-apache-logs>/mod_jk.log
>>> JkLogLevel error
>>>
>>> <VirtualHost *:80>
>>>     ServerName www.example.com
>>>     JkMount /*.jsp tomcat
>>>     JkMount /servlet/* tomcat
>>> </VirtualHost>
>>> -------
>>>
>>> <path-to-apache-conf>/tomcat_workers.properties
>>> -------
>>> worker.list=tomcat
>>> worker.tomcat.port=8007
>>> worker.tomcat.host=localhost
>>> worker.tomcat.type=ajp13
>>> -------
>>>
>>> That's it!
>>>
>>> -Dave
>>>  aka the mod_jk "expert"
>>>  NOT a mod_jk2 "expert"!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>> -- 
>>
>> Dwayne A. Ghant
>> Application Developer
>> Temple University
>> 215.204.5555
>> dghant@temple.edu
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> David G. O'Brien
> Web Services Coordinator / Systems Administrator
>
> NACCRRA
> The Nation's Network of Child Care Resource & Referral
> 1319 F Street NW, Suite 500
> Washington, DC 20004
> (202) 393-5501 ext. 113
> (202) 393-1109 fax
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

-- 

Dwayne A. Ghant
Application Developer
Temple University
215.204.5555
dghant@temple.edu

 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by David O'Brien <do...@naccrra.org>.
If you are using mod_jk and NOT mod_jk2 then this file's content makes no 
difference in your configuration.
You need to tell apache to use the workers.properties NOT the 
workers2.properties in your httpd.conf file
-Dave


At 11:58 AM 2/10/2004, you wrote:
>But Dave you didn't address this stuff below?
>I think this is where I'm having the most problems.
>
>##=====================================
>##Other needed configuratoin(s)
>##=====================================
>##define the shared memory file
>
>[shm]
>file=/usr/local/tomcat-4.1.24/work/jk2.shm
>file=1048576
>
>## Define the communication channel
>
>[channel.socket:localhost:8009]
>#tomcatId=localhost:8009
>port=8009
>host=127.0.0.1
>
>#define the worker
>[balance_all_workers:localhost:8009]
>channel=channel.socket:localhost:8009
>
>
>
>
>#Uri mapping
>[uri:saturn.temple.edu/examples/*]
>#worker=ajp13:localhost:8009
>worker=balance_all_workers:localhost:8009
>
>[uri:saturn.temple.edu/developers/*]
>#worker=ajp13:localhost:8009
>worker=balance_all_workers:localhost:8009
>
>[uri:saturn.temple.edu/product/*]
>#worker=ajp13:localhost:8010
>worker=balance_all_workers:localhost:8010
>
>[uri:saturn.temple.edu/uPortal/*]
>#worker=ajp13:localhost:8010
>worker=balance_all_workers:localhost:8010
>
>
>#[status:]
>
>#info=Status worker, displays runtime information
>channel=channel.socket:localhost:8009
>
>#[uri:/status/*]
>#worker=status:localhost:8009
>#group=status:
>
>
>David Rees wrote:
>
>>Dwayne Ghant wrote, On 2/9/2004 7:02 PM:
>>
>>>Dave, I have been having semular issues would it be impossible for to 
>>>post the four files listed below:
>>>
>>>1. http.conf
>>>2. ssl.conf
>>>3. server.xml
>>>4. workers2.properties
>>
>>
>>Here's a sample for setting up Apache.  This will work on either Apache 
>>2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat will 
>>work, use the example connector config included with every default 
>>server.xml as it varies a little between Tomcat versions.
>>
>>httpd.conf
>># This only shows the portions relevant to mod_jk, you should stick the
>># lines somewhere in your config file.  This config also works for
>># Apache 1.3.X as well as Apache 2.0.X.
>>-------
>>LoadModule jk_module modules/mod_jk.so
>>
>>JkWorkersFile <path-to-apache-conf>/tomcat_workers.properties
>>JkLogFile <path-to-apache-logs>/mod_jk.log
>>JkLogLevel error
>>
>><VirtualHost *:80>
>>     ServerName www.example.com
>>     JkMount /*.jsp tomcat
>>     JkMount /servlet/* tomcat
>></VirtualHost>
>>-------
>>
>><path-to-apache-conf>/tomcat_workers.properties
>>-------
>>worker.list=tomcat
>>worker.tomcat.port=8007
>>worker.tomcat.host=localhost
>>worker.tomcat.type=ajp13
>>-------
>>
>>That's it!
>>
>>-Dave
>>  aka the mod_jk "expert"
>>  NOT a mod_jk2 "expert"!
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>--
>
>Dwayne A. Ghant
>Application Developer
>Temple University
>215.204.5555
>dghant@temple.edu
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


David G. O'Brien
Web Services Coordinator / Systems Administrator

NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by David Rees <dr...@greenhydrant.com>.
All that stuff below is related to mod_jk2, which I am definitely NOT an 
"expert" as noted in my previous email.  Hope someone else can help you.

-Dave

Dwayne Ghant wrote, On 2/10/2004 8:58 AM:
> But Dave you didn't address this stuff below?
> I think this is where I'm having the most problems.
> 
> ##=====================================
> ##Other needed configuratoin(s)
> ##=====================================
> ##define the shared memory file
> 
> [shm]
> file=/usr/local/tomcat-4.1.24/work/jk2.shm
> file=1048576
> 
> ## Define the communication channel
<snip>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by Dwayne Ghant <dg...@temple.edu>.
But Dave you didn't address this stuff below?
I think this is where I'm having the most problems.

##=====================================
##Other needed configuratoin(s)
##=====================================
##define the shared memory file

[shm]
file=/usr/local/tomcat-4.1.24/work/jk2.shm
file=1048576

## Define the communication channel

[channel.socket:localhost:8009]
#tomcatId=localhost:8009
port=8009
host=127.0.0.1

#define the worker
[balance_all_workers:localhost:8009]
channel=channel.socket:localhost:8009




#Uri mapping
[uri:saturn.temple.edu/examples/*]
#worker=ajp13:localhost:8009
worker=balance_all_workers:localhost:8009

[uri:saturn.temple.edu/developers/*]
#worker=ajp13:localhost:8009
worker=balance_all_workers:localhost:8009

[uri:saturn.temple.edu/product/*]
#worker=ajp13:localhost:8010
worker=balance_all_workers:localhost:8010

[uri:saturn.temple.edu/uPortal/*]
#worker=ajp13:localhost:8010
worker=balance_all_workers:localhost:8010


#[status:]

#info=Status worker, displays runtime information
channel=channel.socket:localhost:8009

#[uri:/status/*]
#worker=status:localhost:8009
#group=status:


David Rees wrote:

> Dwayne Ghant wrote, On 2/9/2004 7:02 PM:
>
>> Dave, I have been having semular issues would it be impossible for to 
>> post the four files listed below:
>>
>> 1. http.conf
>> 2. ssl.conf
>> 3. server.xml
>> 4. workers2.properties
>
>
> Here's a sample for setting up Apache.  This will work on either 
> Apache 2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat 
> will work, use the example connector config included with every 
> default server.xml as it varies a little between Tomcat versions.
>
> httpd.conf
> # This only shows the portions relevant to mod_jk, you should stick the
> # lines somewhere in your config file.  This config also works for
> # Apache 1.3.X as well as Apache 2.0.X.
> -------
> LoadModule jk_module modules/mod_jk.so
>
> JkWorkersFile <path-to-apache-conf>/tomcat_workers.properties
> JkLogFile <path-to-apache-logs>/mod_jk.log
> JkLogLevel error
>
> <VirtualHost *:80>
>     ServerName www.example.com
>     JkMount /*.jsp tomcat
>     JkMount /servlet/* tomcat
> </VirtualHost>
> -------
>
> <path-to-apache-conf>/tomcat_workers.properties
> -------
> worker.list=tomcat
> worker.tomcat.port=8007
> worker.tomcat.host=localhost
> worker.tomcat.type=ajp13
> -------
>
> That's it!
>
> -Dave
>  aka the mod_jk "expert"
>  NOT a mod_jk2 "expert"!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

-- 

Dwayne A. Ghant
Application Developer
Temple University
215.204.5555
dghant@temple.edu

 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by David Rees <dr...@greenhydrant.com>.
Dwayne Ghant wrote, On 2/9/2004 7:02 PM:

> Dave, I have been having semular issues would it be impossible for to 
> post the four files listed below:
> 
> 1. http.conf
> 2. ssl.conf
> 3. server.xml
> 4. workers2.properties

Here's a sample for setting up Apache.  This will work on either Apache 
2.0.X or Apache 1.3.X, and mod_jk 1.2.5.  Any version of Tomcat will 
work, use the example connector config included with every default 
server.xml as it varies a little between Tomcat versions.

httpd.conf
# This only shows the portions relevant to mod_jk, you should stick the
# lines somewhere in your config file.  This config also works for
# Apache 1.3.X as well as Apache 2.0.X.
-------
LoadModule jk_module modules/mod_jk.so

JkWorkersFile <path-to-apache-conf>/tomcat_workers.properties
JkLogFile <path-to-apache-logs>/mod_jk.log
JkLogLevel error

<VirtualHost *:80>
     ServerName www.example.com
     JkMount /*.jsp tomcat
     JkMount /servlet/* tomcat
</VirtualHost>
-------

<path-to-apache-conf>/tomcat_workers.properties
-------
worker.list=tomcat
worker.tomcat.port=8007
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
-------

That's it!

-Dave
  aka the mod_jk "expert"
  NOT a mod_jk2 "expert"!

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by Dwayne Ghant <dg...@temple.edu>.
Dave, 
I have been having semular issues would it be impossible for to post 
the four files listed below:


1. http.conf
2. ssl.conf
3. server.xml
4. workers2.properties


If not then could you please atlease show you workers2.properties?

The likely hood is very great that I'm having trouble with my 
workers2.properties file.
I'm runing RH8, tomcat 4.1.24, apache 2.0.40, J2EE 1.4.1

Thank you for you time.

Nicholas Bernstein wrote:

>On Mon, 2004-02-09 at 17:37, David Rees wrote:
>  
>
>>On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
>>    
>>
>>>Give up trying to use Apache2 with mod_jk.  After spending days on the
>>>message boards trying to solve this one, I was ultimately told by the
>>>so-called "experts" that  "I had a network configuration problem and that
>>>some process was likely to be either already using or blocking port 8009".
>>>      
>>>
>>Hmm, I've had no problems at all using mod_jk with Apache2 on both various
>>Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)
>>
>>-Dave
>>    
>>
>
>if you've got a minute, take a look @ the configs I posted 
>http://nicholasbernstein.com/tomcat/
>
>and let me know if you see anything wrong with the setup. I'd rather
>stick to apache2; i'm using redhat ES and it looks like they've made a
>lot of RH specific patches to httpd source, so it probably performs a
>lot better that compiling 1.x from source. 
>
>
>
>
>  
>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>    
>>

-- 

Dwayne A. Ghant
Application Developer
Temple University
215.204.5555
dghant@temple.edu

 


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
On Mon, 2004-02-09 at 23:32, David Rees wrote:
> Nicholas Bernstein wrote, On 2/9/2004 6:26 PM:
> > 
> > if you've got a minute, take a look @ the configs I posted 
> > http://nicholasbernstein.com/tomcat/
> > 
> > and let me know if you see anything wrong with the setup. I'd rather
> > stick to apache2; i'm using redhat ES and it looks like they've made a
> > lot of RH specific patches to httpd source, so it probably performs a
> > lot better that compiling 1.x from source. 
> 
> It looks like you're trying to use mod_jk with a mod_jk2 configuration 
> file.  The configuration files are NOT the same between the two modules.
> 
> -Dave
> 

right below the workers2.properties is the workers.properties file. I
had been using mod_jk2, and left it in for completeness. Sorry if it
caused confusion. 

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by David Rees <dr...@greenhydrant.com>.
Nicholas Bernstein wrote, On 2/9/2004 6:26 PM:
> 
> if you've got a minute, take a look @ the configs I posted 
> http://nicholasbernstein.com/tomcat/
> 
> and let me know if you see anything wrong with the setup. I'd rather
> stick to apache2; i'm using redhat ES and it looks like they've made a
> lot of RH specific patches to httpd source, so it probably performs a
> lot better that compiling 1.x from source. 

It looks like you're trying to use mod_jk with a mod_jk2 configuration 
file.  The configuration files are NOT the same between the two modules.

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
On Mon, 2004-02-09 at 17:37, David Rees wrote:
> On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
> >
> > Give up trying to use Apache2 with mod_jk.  After spending days on the
> > message boards trying to solve this one, I was ultimately told by the
> > so-called "experts" that  "I had a network configuration problem and that
> > some process was likely to be either already using or blocking port 8009".
> 
> Hmm, I've had no problems at all using mod_jk with Apache2 on both various
> Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)
> 
> -Dave

if you've got a minute, take a look @ the configs I posted 
http://nicholasbernstein.com/tomcat/

and let me know if you see anything wrong with the setup. I'd rather
stick to apache2; i'm using redhat ES and it looks like they've made a
lot of RH specific patches to httpd source, so it probably performs a
lot better that compiling 1.x from source. 




> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by Charles Daniel <da...@hotmail.com>.
David:

Then let me congratulate you on your positive experience with this uggggghm ... software.  You must have been very good in your past life.  Honestly,  I'm sure that there are some who have installed this ugggghm .. software successfully, but I tried everything I could think of and no cigar.  Maybe there are certain versions of Linux that make mod_jk hiccup when combined with Apace2.  

Mine is SuSE Linux 8.0. I previously had mod_jk and Apache 1.x working on the same server.  When I upgraded to Apache2 I started from scratch.  All new binaries and tar files from both the Apache and Jakarta web sites.  I used the auto config feature, so it wasn't like I configured something wrong in the .conf files.  Tomcat generated it own config in the auto directory.  When that failed manually edited all of my httpd.conf file with the same results.

Oh and by the way let me refer you to Nicholas, who seems to be having the same problem as I did. Maybe an expert like yourself can help him.  I'm no longer interested.

Osensei - OUT

  ----- Original Message ----- 
  From: David Rees<ma...@greenhydrant.com> 
  To: Tomcat Users List<ma...@jakarta.apache.org> 
  Sent: Monday, February 09, 2004 7:37 PM
  Subject: Re: done did not found a worker


  On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
  >
  > Give up trying to use Apache2 with mod_jk.  After spending days on the
  > message boards trying to solve this one, I was ultimately told by the
  > so-called "experts" that  "I had a network configuration problem and that
  > some process was likely to be either already using or blocking port 8009".

  Hmm, I've had no problems at all using mod_jk with Apache2 on both various
  Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)

  -Dave

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org<ma...@jakarta.apache.org>
  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org<ma...@jakarta.apache.org>


Re: done did not found a worker

Posted by David Rees <dr...@greenhydrant.com>.
On Mon, February 9, 2004 at 4:41 pm, Charles Daniel wrote:
>
> Give up trying to use Apache2 with mod_jk.  After spending days on the
> message boards trying to solve this one, I was ultimately told by the
> so-called "experts" that  "I had a network configuration problem and that
> some process was likely to be either already using or blocking port 8009".

Hmm, I've had no problems at all using mod_jk with Apache2 on both various
Linux and SGI Irix machines.  I must be a so-called "expert".  ;-)

-Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
On Mon, 2004-02-09 at 16:41, Charles Daniel wrote:
> Nicholas:
> 
> Give up trying to use Apache2 with mod_jk.  After spending days on the message boards trying to solve this one, I was ultimately told by the so-called "experts" that  "I had a network configuration problem and that some process was likely to be either already using or blocking port 8009".  
> 
> Poppy-Cock! Boulder Dash!  I decided to attempt installing JK2 on the same server just to see if it would work.  Guess what?  JK2 and Apache2 worked on my first attempt.  So much for getting advice from the EXPERTS!  JK2 is not recommended if you are in a production environment however.  JK2 is too young and untested for production environments and exploitable bugs and stability problems may arise. 
> 
> If you are building a production system -or- you just insist on using mod_jk then revert back to Apache 1.x. w/ mod_jk. Otherwise you may never get your server working.  
> 
> That's just the opinion of one who has suffered long enough with the Apache2 mod_jk  SNAFFU. IMHO that combo just doesn't work together inspite of what Apache says.  And if anybody thinks I'm wrong then they had ample time to help me when I was posting help requests concerning this issue all over the www. As it stands few would touch it with a ten foot pole. And the few who did were wrong.
> 
> Osensei
> daniel_charles@hotmail.com<ma...@hotmail.com>


Daniel:
Thanks for your reply. Honestly, I was getting to the point where I was
going to give it one more day and then try using apache 1.x instead.
Thanks for taking the time. I appreciate it. 

-Nick

-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+

Re: done did not found a worker

Posted by Charles Daniel <da...@hotmail.com>.
Nicholas:

Give up trying to use Apache2 with mod_jk.  After spending days on the message boards trying to solve this one, I was ultimately told by the so-called "experts" that  "I had a network configuration problem and that some process was likely to be either already using or blocking port 8009".  

Poppy-Cock! Boulder Dash!  I decided to attempt installing JK2 on the same server just to see if it would work.  Guess what?  JK2 and Apache2 worked on my first attempt.  So much for getting advice from the EXPERTS!  JK2 is not recommended if you are in a production environment however.  JK2 is too young and untested for production environments and exploitable bugs and stability problems may arise. 

If you are building a production system -or- you just insist on using mod_jk then revert back to Apache 1.x. w/ mod_jk. Otherwise you may never get your server working.  

That's just the opinion of one who has suffered long enough with the Apache2 mod_jk  SNAFFU. IMHO that combo just doesn't work together inspite of what Apache says.  And if anybody thinks I'm wrong then they had ample time to help me when I was posting help requests concerning this issue all over the www. As it stands few would touch it with a ten foot pole. And the few who did were wrong.

Osensei
daniel_charles@hotmail.com<ma...@hotmail.com>

  ----- Original Message ----- 
  From: Nicholas Bernstein<ma...@docmagic.com> 
  To: tomcat-user@jakarta.apache.org<ma...@jakarta.apache.org> 
  Sent: Monday, February 09, 2004 1:33 PM
  Subject: done did not found a worker


Re: done did not found a worker

Posted by Nicholas Bernstein <ni...@docmagic.com>.
On Mon, 2004-02-09 at 11:33, Nicholas Bernstein wrote:

::SNIP::

I was wondering if perhaps this message was received by the list earlier
and responded to, but I missed it. I tried to send it twice on friday,
but got a bounce and did not see it appear in the messages from the
list. Then again, I didn't start getting any messages until sunday, as
either the subscribe took a long time, or the list was slow. 

Anyway, the original question, along with configs are at: 
http://www.nicholasbernstein.com/tomcat/

if anyone wants to take a shot at it. 

Thanks again,
Nick

-- 
+---------------------------------------------------------------+
| Nicholas Bernstein            | nick@docmagic.com             |
| UNIX Systems Administrator    | http://www.docmagic.com       |
| Document Systems Inc.         |  				|
| gpg: F706 8C4E 78FA DDDD 53A0 019F D983 FE28 2002 D1F3	|
+---------------------------------------------------------------+