Re: Final questions: workers.properties

2005-09-11 Thread Bill Barker

"David Thielen" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi;
>
>
>
> First off thanks to all for help - I think I'm just about done. Question:
>
>
>
> workers.properties.minimal (which works fine) only has:
>
> worker.list=ajp13w
>
> worker.ajp13w.type=ajp13
>
> worker.ajp13w.host=localhost
>
> worker.ajp13w.port=8009
>
>
>
> While workers.properties (not load balancing) also has:
>
> workers.tomcat_home=/var/tomcat3
>
> workers.java_home=/opt/IBMJava2-13
>
> ps=/
>
> worker.inprocess.* (lots of inprocess ones)
>
>
>
> Are the above needed for anything? It wasn't clear to me reading the docs
> what inprocess was for.
>

The inprocess is for Apache to connect to Tomcat using JNI.  It currently 
only works for TC 3.3.x, so you can likely safely ignore it (or comment it 
out).

>
>
> ??? - thanks - dave
>
>
>
>
>
> David Thielen
>
> 303-499-2544
>
> www.windwardreports.com <http://www.windwardreports.com/>
>
>
>
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties load balancing

2005-09-10 Thread Steve Dodge
Thanks for the answer.  In the future, I'm wondering if you know where I 
could find some debug output that will tell me my workers.properties was 
misconfigured.   The only output I was getting was through the 
mod_jk.log which told me JkMount was handling the request but could not 
find the worker.


Thanks,
Steve

Rainer Jung wrote:


Hi Steve,

not a bug in 1.2.6 either:

You have used the attribute balance_workers:

 


worker.router.balance_workers=worker1,worker2
   



Version 1.2.6 only knew about balanced_workers. See the tiny difference?
In 1.2.14 you can use either of both and balance_workers take precendence.

 


Steve Dodge wrote:

   


JK 1.2.14 with Tomcat 5.0.28 and Apache 2.0.52 on Linux RH AS4,
Tomcats are installed on different machines.   I cannot get a load
balancing worker to work. mod_jk forwards request to tomcat just fine
as long as I don't try and use a load balancing worker in my
worker.list. The mod_jk.log says "did not find a worker".

==workers.properties
worker.list=router

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=server.ip1
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.cachesize=10

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server.ip2
worker.worker2.port=8009
worker.worker2.lbfactor=1
worker.worker2.cachesize=10


worker.router.type=lb
worker.router.balance_workers=worker1,worker2
#worker.router.sticky_seesion=True

worker.status.type=status

=mod_jk.config==
JkWorkersFile /etc/httpd/conf.d/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLeveltrace
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

JkMount /jmx-console/*.jsp router
JkMount /jkstatus/* status


When I use worker.list=worker1,worker1 and replace JkMount
/jmx-console/*.jsp worker1 requests are forwarded, but I loose load
balancing.  Its like the minute I put the load balancer worker into
the list, the whole workers configuration is bad.

Thanks in advance,
Steve


 


I have some clarification on my workers.properties issue.  It's not an
Issue!  The version of JK connectors was not JK 1.2.14, it was JK
1.2.6.  Sorry to leave anyone scratching their head.   I told my system
admin to build from source JK 1.2.14, but to save time he found a
pre-packaged rpm from RedHat containing JK 1.2.6.  I wasn't aware of the
fact that I had debugged version 6 instead of 14.  So for those who are
interested, JK 1.2.6 had BUGS.

-Building mod_jk 
On another note, compiling JK connectors went very smooth on a stock
redhat box with RPM devel packages.  All we had to do was install the
httpd-devel-2.0.52-12.2.ent.i386.rpm and any rpm's required by it (to
get a list type  rpm -qp --requires httpd-devel-2.0.52-12.2.ent.i386.rpm
)  Then download and extract the JK source code.  Navigate to the native
directory type in |*./configure --with-apxs=/usr/sbin/apxs, the
corresponding Apache2.0.x mod_jk.so resulted. Instructions are found at
http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html

Steve
*|

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties load balancing

2005-09-10 Thread Rainer Jung
Hi Steve,

not a bug in 1.2.6 either:

You have used the attribute balance_workers:

> worker.router.balance_workers=worker1,worker2

Version 1.2.6 only knew about balanced_workers. See the tiny difference?
In 1.2.14 you can use either of both and balance_workers take precendence.

> Steve Dodge wrote:
>
>> JK 1.2.14 with Tomcat 5.0.28 and Apache 2.0.52 on Linux RH AS4,
>> Tomcats are installed on different machines.   I cannot get a load
>> balancing worker to work. mod_jk forwards request to tomcat just fine
>> as long as I don't try and use a load balancing worker in my
>> worker.list. The mod_jk.log says "did not find a worker".
>>
>> ==workers.properties
>> worker.list=router
>>
>> # Set properties for worker1 (ajp13)
>> worker.worker1.type=ajp13
>> worker.worker1.host=server.ip1
>> worker.worker1.port=8009
>> worker.worker1.lbfactor=1
>> worker.worker1.cachesize=10
>>
>> # Set properties for worker2 (ajp13)
>> worker.worker2.type=ajp13
>> worker.worker2.host=server.ip2
>> worker.worker2.port=8009
>> worker.worker2.lbfactor=1
>> worker.worker2.cachesize=10
>>
>>
>> worker.router.type=lb
>> worker.router.balance_workers=worker1,worker2
>> #worker.router.sticky_seesion=True
>>
>> worker.status.type=status
>>
>> =mod_jk.config==
>> JkWorkersFile /etc/httpd/conf.d/workers.properties
>> JkLogFile /var/log/httpd/mod_jk.log
>> JkLogLeveltrace
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>> JkRequestLogFormat "%w %V %T"
>>
>> JkMount /jmx-console/*.jsp router
>> JkMount /jkstatus/* status
>> 
>>
>> When I use worker.list=worker1,worker1 and replace JkMount
>> /jmx-console/*.jsp worker1 requests are forwarded, but I loose load
>> balancing.  Its like the minute I put the load balancer worker into
>> the list, the whole workers configuration is bad.
>>
>> Thanks in advance,
>> Steve
>>
>>
> I have some clarification on my workers.properties issue.  It's not an
> Issue!  The version of JK connectors was not JK 1.2.14, it was JK
> 1.2.6.  Sorry to leave anyone scratching their head.   I told my system
> admin to build from source JK 1.2.14, but to save time he found a
> pre-packaged rpm from RedHat containing JK 1.2.6.  I wasn't aware of the
> fact that I had debugged version 6 instead of 14.  So for those who are
> interested, JK 1.2.6 had BUGS.
>
> -Building mod_jk 
> On another note, compiling JK connectors went very smooth on a stock
> redhat box with RPM devel packages.  All we had to do was install the
> httpd-devel-2.0.52-12.2.ent.i386.rpm and any rpm's required by it (to
> get a list type  rpm -qp --requires httpd-devel-2.0.52-12.2.ent.i386.rpm
> )  Then download and extract the JK source code.  Navigate to the native
> directory type in |*./configure --with-apxs=/usr/sbin/apxs, the
> corresponding Apache2.0.x mod_jk.so resulted. Instructions are found at
> http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html
>
> Steve
> *|
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties load balancing

2005-09-09 Thread Steve Dodge

Steve Dodge wrote:

JK 1.2.14 with Tomcat 5.0.28 and Apache 2.0.52 on Linux RH AS4, 
Tomcats are installed on different machines.   I cannot get a load 
balancing worker to work. mod_jk forwards request to tomcat just fine 
as long as I don't try and use a load balancing worker in my 
worker.list. The mod_jk.log says "did not find a worker".


==workers.properties
worker.list=router

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=server.ip1
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.cachesize=10

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server.ip2
worker.worker2.port=8009
worker.worker2.lbfactor=1
worker.worker2.cachesize=10


worker.router.type=lb
worker.router.balance_workers=worker1,worker2
#worker.router.sticky_seesion=True

worker.status.type=status

=mod_jk.config==
JkWorkersFile /etc/httpd/conf.d/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLeveltrace
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

JkMount /jmx-console/*.jsp router
JkMount /jkstatus/* status


When I use worker.list=worker1,worker1 and replace JkMount 
/jmx-console/*.jsp worker1 requests are forwarded, but I loose load 
balancing.  Its like the minute I put the load balancer worker into 
the list, the whole workers configuration is bad.


Thanks in advance,
Steve


I have some clarification on my workers.properties issue.  It's not an 
Issue!  The version of JK connectors was not JK 1.2.14, it was JK 
1.2.6.  Sorry to leave anyone scratching their head.   I told my system 
admin to build from source JK 1.2.14, but to save time he found a 
pre-packaged rpm from RedHat containing JK 1.2.6.  I wasn't aware of the 
fact that I had debugged version 6 instead of 14.  So for those who are 
interested, JK 1.2.6 had BUGS. 


-Building mod_jk 
On another note, compiling JK connectors went very smooth on a stock 
redhat box with RPM devel packages.  All we had to do was install the  
httpd-devel-2.0.52-12.2.ent.i386.rpm and any rpm's required by it (to 
get a list type  rpm -qp --requires httpd-devel-2.0.52-12.2.ent.i386.rpm 
)  Then download and extract the JK source code.  Navigate to the native 
directory type in |*./configure --with-apxs=/usr/sbin/apxs, the 
corresponding Apache2.0.x mod_jk.so resulted. Instructions are found at

http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html

Steve
*|

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Final questions: workers.properties

2005-09-09 Thread David Thielen
Hi;

 

First off thanks to all for help - I think I'm just about done. Question:

 

workers.properties.minimal (which works fine) only has:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

While workers.properties (not load balancing) also has:

workers.tomcat_home=/var/tomcat3

workers.java_home=/opt/IBMJava2-13

ps=/

worker.inprocess.* (lots of inprocess ones)

 

Are the above needed for anything? It wasn't clear to me reading the docs
what inprocess was for.

 

??? - thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com <http://www.windwardreports.com/> 

 



workers.properties load balancing

2005-09-08 Thread Steve Dodge
JK 1.2.14 with Tomcat 5.0.28 and Apache 2.0.52 on Linux RH AS4, Tomcats 
are installed on different machines.   I cannot get a load balancing 
worker to work. mod_jk forwards request to tomcat just fine as long as I 
don't try and use a load balancing worker in my worker.list. The 
mod_jk.log says "did not find a worker".


==workers.properties
worker.list=router

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=server.ip1
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.cachesize=10

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server.ip2
worker.worker2.port=8009
worker.worker2.lbfactor=1
worker.worker2.cachesize=10


worker.router.type=lb
worker.router.balance_workers=worker1,worker2
#worker.router.sticky_seesion=True

worker.status.type=status

=mod_jk.config==
JkWorkersFile /etc/httpd/conf.d/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLeveltrace
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

JkMount /jmx-console/*.jsp router
JkMount /jkstatus/* status


When I use worker.list=worker1,worker1 and replace JkMount 
/jmx-console/*.jsp worker1 requests are forwarded, but I loose load 
balancing.  Its like the minute I put the load balancer worker into the 
list, the whole workers configuration is bad.


Thanks in advance,
Steve


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties directives

2005-08-29 Thread Rainer Jung
mod_jk 1.2.14:

List of workers, attributes and defaults. ajp14 is not included.

global:

- worker.maintain (60)
[and some obvious others]

all workers:

- type (ajp13)

ajp12:

- host (localhost)
- port (8007)

ajp13:

- host (localhost)
- port (8009)
- connection_pool_size (1) [aka "cachesize" which is the old and
deprecated name]
- cache_timeout (0)
- socket_timeout (-1 = disabled)
- socket_buffer (8192)
- socket_keepalive (false)
- recycle_timeout (0)
- connect_timeout (0)
- reply_timeout (0)
- prepost_timeout (0)
- recovery_options (0)
- retries (3)

lb:

- balanced_workers / balance_workers
- sticky_session (1)
- sticky_session_force (0)
- method (0=BYREQUESTS)
- lock (O=OPTIMISTIC)
- recover_time (60, also mimimum 60)

per balanced worker:

- lbfactor (1)
- domain (NULL)
- redirect (NULL)
- disabled (0)
- stopped (0)

I hope this helps.

Viel Spaß wünscht

Rainer Jung

--

kippdata informationstechnologie GmbH
Bornheimer Str. 33a
D-53115 Bonn

> Hi all,
>
> recently I stumbled over the mod_jk statusworker feature coming with
> recent mod_jk versions and, of course, I immediately wanted to have
> such neat thing :-)
>
> Up to that time, I didn't saw an imperative need to have balanced wor-
> kers (Apache+Tomcat on the same machine; one single ajp13 type
> worker did his job fine for me so far).
>
> Since it turned out that the status worker will talk to lb type workers
> only, I simply renamed my existing ajp13 worker, then established
> another lb type worker of the former name which itself "sits" now on
> that ajp13 type (or "node") worker.
>
> But here I'm asking myself: Where do I preferably apply those "more
> sophisticated" settings like
>
> worker.XY.recycle_timeout, worker.XY.cachesize or
> worker.XY.cache_timeout ??
>
> (seems that we can assign them both to lb type as to ajp13 type workers;
> at least I didn't found anything that rules out doing so in the online
> docs)
>
> In other words, do they a better job when defined with worker "MyWorker"
> or with "node1" in the following httpd.conf example (simplified view;
> think yourself a "JkWorkerProperty" in front of all these "worker..."
> directives):
>
> worker.list=MyWorker
> worker.MyWorker.type=lb
> worker.MyWorker.balance_workers=node1
> worker.node1.type=ajp13
> worker.node1.host=localhost
> worker.node1.port=8009
>
> 
>   JkMount MyWorker
> 
>
> ??
>
> Some of that worker.XY... options sound more "IP related", so I would
> tend to assign them to ajp13 type workers;
> on the other hand, worker.XY.cachesize seems to have more impact to
> the endpoint software layer, which implies that it unfolds it's effect
> better within the load balancer tier.
>
> TIA
>
> Regards
>
> Olaf Lautenschlaeger
> --
> ANOVA Multimedia Studios GmbH
> Joachim-Jungius-Strasse 9
> D-18059 Rostock / Germany
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



workers.properties directives

2005-08-29 Thread Olaf Lautenschlaeger
Hi all,

recently I stumbled over the mod_jk statusworker feature coming with
recent mod_jk versions and, of course, I immediately wanted to have
such neat thing :-)

Up to that time, I didn't saw an imperative need to have balanced wor-
kers (Apache+Tomcat on the same machine; one single ajp13 type
worker did his job fine for me so far).

Since it turned out that the status worker will talk to lb type workers
only, I simply renamed my existing ajp13 worker, then established
another lb type worker of the former name which itself "sits" now on
that ajp13 type (or "node") worker.

But here I'm asking myself: Where do I preferably apply those "more
sophisticated" settings like

worker.XY.recycle_timeout, worker.XY.cachesize or
worker.XY.cache_timeout ??

(seems that we can assign them both to lb type as to ajp13 type workers;
at least I didn't found anything that rules out doing so in the online
docs)

In other words, do they a better job when defined with worker "MyWorker"
or with "node1" in the following httpd.conf example (simplified view;
think yourself a "JkWorkerProperty" in front of all these "worker..."
directives):

worker.list=MyWorker
worker.MyWorker.type=lb
worker.MyWorker.balance_workers=node1
worker.node1.type=ajp13
worker.node1.host=localhost
worker.node1.port=8009


  JkMount MyWorker


??

Some of that worker.XY... options sound more "IP related", so I would
tend to assign them to ajp13 type workers;
on the other hand, worker.XY.cachesize seems to have more impact to
the endpoint software layer, which implies that it unfolds it's effect
better within the load balancer tier.

TIA

Regards

Olaf Lautenschlaeger
--
ANOVA Multimedia Studios GmbH
Joachim-Jungius-Strasse 9
D-18059 Rostock / Germany


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



workers.properties: cache_timeout/socket_timeout/...

2005-02-24 Thread Joseph Lam
Anyone familiar with the tuning of the timeout settings?
cache_timeout
socket_timeout
recycle_timeout
prepost_timeout
connect_timeout
reply_timeout

There are so many timeout settings but the doc online is a bit confusing
to me. I don't know which value is used under different situations...

e.g.:  

When Apache create a new ajp connection to TC and forward a request, will
the socket_timeout or connect_timeout or prepost_timeout be used?(or a mix
of them?)

When an ajp connection is idled, will cache_timeout or recycle_timeout be
used?

Is socket_timeout always in effect together with each of the other
timeouts?

What if the page content from TC is lengthy and took longer than
cache/recycle_timeout? 

Regards,
Joseph


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk dynamic update of workers.properties

2005-02-12 Thread Olve Hansen
On Sun, 6 Feb 2005 16:17:16 -0500, bt <[EMAIL PROTECTED]> wrote:
> Why ddi you want to update the workers2.properties file dynamically?
> 

Sorry, I might have been a bit unclear.. I meant if mod_jk could read
updated workers.properties at runtime. We are using mod_jk2 now, and
it can do that.. I am interested in knowing if mod_jk can do the same
thing. E.g. adding more servers to the workers.properties while
apache2 is running, and that mod_jk discovers this.


If mod_jk can do this, I would rather use that one, since it is still
supported, which mod_jk2 is not.

The documenation recommends using mod_jk, since it is supported. It
also states that several of the improvements in mod_jk2 are backported
to mod_jk, but it fails to state which...

-- 
Olve
> 
> 
> On Sat, 5 Feb 2005 09:17:32 +0100, Olve Hansen <[EMAIL PROTECTED]> wrote:
> > On Fri, 4 Feb 2005 17:25:58 +0100, Olve Hansen <[EMAIL PROTECTED]> wrote:
> > > Haven't found docs about this anywher (i might be short sighted though).
> > > Can mod_jk dynamically update the contents of workers.properties?
> > > Or do I have to use  mod_jk2 to be able to do that..
> > >
> >
> > Nevermind (not that too many did mind :-) )
> > The graceful shutdown of server nodes is too complicated in mod_jk -
> > I'll take the gamble (as it is officially unsopported), and go for
> > mod_jk2...
> >
> >
> > --
> >  \ Olve S. Hansen
> >   \ mailto:[EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 


-- 
 \ Olve S. Hansen
  \ mailto:[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk dynamic update of workers.properties

2005-02-06 Thread bt
Why ddi you want to update the workers2.properties file dynamically?

btahir


On Sat, 5 Feb 2005 09:17:32 +0100, Olve Hansen <[EMAIL PROTECTED]> wrote:
> On Fri, 4 Feb 2005 17:25:58 +0100, Olve Hansen <[EMAIL PROTECTED]> wrote:
> > Haven't found docs about this anywher (i might be short sighted though).
> > Can mod_jk dynamically update the contents of workers.properties?
> > Or do I have to use  mod_jk2 to be able to do that..
> >
> 
> Nevermind (not that too many did mind :-) )
> The graceful shutdown of server nodes is too complicated in mod_jk -
> I'll take the gamble (as it is officially unsopported), and go for
> mod_jk2...
> 
> 
> --
>  \ Olve S. Hansen
>   \ mailto:[EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk dynamic update of workers.properties

2005-02-05 Thread Olve Hansen
On Fri, 4 Feb 2005 17:25:58 +0100, Olve Hansen <[EMAIL PROTECTED]> wrote:
> Haven't found docs about this anywher (i might be short sighted though).
> Can mod_jk dynamically update the contents of workers.properties?
> Or do I have to use  mod_jk2 to be able to do that..
> 

Nevermind (not that too many did mind :-) )
The graceful shutdown of server nodes is too complicated in mod_jk -
I'll take the gamble (as it is officially unsopported), and go for
mod_jk2...


-- 
 \ Olve S. Hansen
  \ mailto:[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk dynamic update of workers.properties

2005-02-04 Thread Olve Hansen
Haven't found docs about this anywher (i might be short sighted though).
Can mod_jk dynamically update the contents of workers.properties?
Or do I have to use  mod_jk2 to be able to do that..

Thanks,

-- 
 \ Olve S. Hansen
  \ mailto:[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Worker2.properties VS Workers.properties

2004-05-27 Thread Kommuru, Bhaskar
Matt,

Sorry ignore my last mail. I tried to pin point the problem. But i could
not. In fact, I did not clearly understand following properties when i go
through them deeply.

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=A second load balancer.
debug=0

Can any one explain better about this?

Thanks
Bhaskar

__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Worker2.properties VS Workers.properties

2004-05-26 Thread Dale, Matt

Yup, I dont even have the file and working fine with jk2.

-Original Message-
From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 10:11
To: 'Tomcat Users List'
Subject: RE: Worker2.properties VS Workers.properties



Hi Matt,

Thanks for helping. So You mean we can ignore completely workers.properties
when using JK2!

Regards,
Bhaskar
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 10:44 AM
To: Tomcat Users List
Subject: RE: Worker2.properties VS Workers.properties



workers2.properties is for the jk2 connector and workers.properties is for
the jk connector, they have slightly different syntax I think but you'd best
look up the jakarta site for that.

Ta
Matt


__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Worker2.properties VS Workers.properties

2004-05-26 Thread Kommuru, Bhaskar

Hi Matt,

Thanks for helping. So You mean we can ignore completely workers.properties
when using JK2!

Regards,
Bhaskar
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 10:44 AM
To: Tomcat Users List
Subject: RE: Worker2.properties VS Workers.properties



workers2.properties is for the jk2 connector and workers.properties is for
the jk connector, they have slightly different syntax I think but you'd best
look up the jakarta site for that.

Ta
Matt


__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Worker2.properties VS Workers.properties

2004-05-26 Thread Dale, Matt

workers2.properties is for the jk2 connector and workers.properties is for the jk 
connector, they have slightly different syntax I think but you'd best look up the 
jakarta site for that.

Ta
Matt

-Original Message-
From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 09:43
To: 'Tomcat Users List'
Subject: Worker2.properties VS Workers.properties


Can any one please explain what is the difference between Worker2.properties
VS Workers.properties? I could not understand that.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 10:40 AM
To: Tomcat Users List; QM
Subject: Re: HTTP Servlet - How to use the same connection for GET URL?


Hi,
Thanks for replying me!
Unfortunatly the HTTP call is the only way I have to submit my
information...
Ideal would be to send a POST HTTP to tht URL with the same connection, I
mean 
the same socket where the HTTP service is up. The strange is that using a
php 
program, I can POST the HTTP using the same connection for all my requests. 
But I have to use the HTTP Servlet in stead of this php program. I believe 
that the performance of my machine will increase if I avoid a huge amount of

sockets connected/disconnected.

Can any one help me?

Citando QM <[EMAIL PROTECTED]>:

 On Tue, May 25, 2004 at 12:28:04PM +0100, [EMAIL PROTECTED]
 wrote:
 : I have an HTTP Servlet that treats somes information and then make a 
 : GET URL with that information, the problem is that everytime the HTTP
 Servlet 
 : is requested to treat the information and then do a GET URL I'm opening a
 new 
 : connection to that URL and than close the connection. So if I have 1 
 : requests I will open and close about 1 sockets to GET the URL. Is
there
 a 
 : way to avoid this?
 
 If I understand your question, there's no good way around this if you
 *must* use an HTTP call.  HTTP is all about stateless, quick-hit
 requests, and it sounds like you're aiming for more of a stateful,
 constant-connection protocol.  Furthermore, if you're opening
 connections to different hosts each time, then reusing the same socket
 is moot anyhow.
 
 Is it a requirement that you perform an HTTP call?  Could you get this
 information, say, from a database?
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__
Quanto gasta de Acesso à Internet? Faça as contas!
http://acesso.portugalmail.pt/contas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any 

Worker2.properties VS Workers.properties

2004-05-26 Thread Kommuru, Bhaskar
Can any one please explain what is the difference between Worker2.properties
VS Workers.properties? I could not understand that.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 10:40 AM
To: Tomcat Users List; QM
Subject: Re: HTTP Servlet - How to use the same connection for GET URL?


Hi,
Thanks for replying me!
Unfortunatly the HTTP call is the only way I have to submit my
information...
Ideal would be to send a POST HTTP to tht URL with the same connection, I
mean 
the same socket where the HTTP service is up. The strange is that using a
php 
program, I can POST the HTTP using the same connection for all my requests. 
But I have to use the HTTP Servlet in stead of this php program. I believe 
that the performance of my machine will increase if I avoid a huge amount of

sockets connected/disconnected.

Can any one help me?

Citando QM <[EMAIL PROTECTED]>:

 On Tue, May 25, 2004 at 12:28:04PM +0100, [EMAIL PROTECTED]
 wrote:
 : I have an HTTP Servlet that treats somes information and then make a 
 : GET URL with that information, the problem is that everytime the HTTP
 Servlet 
 : is requested to treat the information and then do a GET URL I'm opening a
 new 
 : connection to that URL and than close the connection. So if I have 1 
 : requests I will open and close about 1 sockets to GET the URL. Is
there
 a 
 : way to avoid this?
 
 If I understand your question, there's no good way around this if you
 *must* use an HTTP call.  HTTP is all about stateless, quick-hit
 requests, and it sounds like you're aiming for more of a stateful,
 constant-connection protocol.  Furthermore, if you're opening
 connections to different hosts each time, then reusing the same socket
 is moot anyhow.
 
 Is it a requirement that you perform an HTTP call?  Could you get this
 information, say, from a database?
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__
Quanto gasta de Acesso à Internet? Faça as contas!
http://acesso.portugalmail.pt/contas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



workers.properties question

2004-05-21 Thread Simon Zeng
Hi,

I have a question about workers.properties setting

In mod_jk.log, I have 
 JkMount /* loadbalancer

In workers.properties, I have

 worker.list = worker1, worker2, loadbalancer(1)

 #worker1 configuration
 #worker2 configuration

 #---Load balancer worker --
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers = worker1, worker2  (2)

worker1 and worker2 are real tomcat instance. loadbalance is for dispatching
message to worker1 and worker2.

My question do I need worker1 and worker2 on line(1). Somewhere between
lines in tomcat HOWTO, I read those workers on line (2) are those not on
line(1). I tried both keep them on line(1) aand remove them from line(1) and
don't see any different result.

Could anyone please enlighten me which is the right way and where can I find
description on suchs issues?

Thanks,
-Simon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello Staf,

thank you very much for your reply. That was exactly what I needed to 
know. You saved me a lot of time.

Sincerely

Michael Kastner

staf wagemakers schrieb:
staf wagemakers schrieb:

It has been a while since I've setup apache with tomcat virtual hosting,
so I dont know it by heart.
Basically you've to define the hosts in the server.xml as describes in the
howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
in apache's httpd.conf (the virtual hosts in apache must have the same 
name as in tomcat) :

NameVirtualHost your_ip:80


ServerName site1
DocumentRoot /var/www/site1
JkMount /servlet/* ajp13 



ServerName site2
DocumentRoot /var/www/site2
JkMount /servlet/* ajp13

If I recall it correctly...


thanks for the reply. I wasn't explicit when I was asking about the 
differences.

I need to know what the differences in the workers.properties file are 
regarding the virtual name hosts and whether each virtual host requires 
a separate worker.

If not so, how would I assign several virtual hosts to a worker?



you dont need to modify your workers.properties, the "default" will do
fine.
mod_jk passes the hostname as defined in the apache's virtualhost to 
tomcat.

regards,

--
Staf Wagemakers
email:  staf at patat.org
homepage:   http://staf.patat.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: workers.properties and virtual hosts

2004-03-23 Thread staf wagemakers
> staf wagemakers schrieb:
> >
> >It has been a while since I've setup apache with tomcat virtual hosting,
> >so I dont know it by heart.
> >
> >Basically you've to define the hosts in the server.xml as describes in the
> >howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
> >in apache's httpd.conf (the virtual hosts in apache must have the same 
> >name as in tomcat) :
> >
> >NameVirtualHost your_ip:80
> >
> >
> >ServerName site1
> >DocumentRoot /var/www/site1
> >JkMount /servlet/* ajp13 
> >
> >
> >
> >ServerName site2
> >DocumentRoot /var/www/site2
> >JkMount /servlet/* ajp13
> >
> >
> >If I recall it correctly...
> >
> >
> 
> thanks for the reply. I wasn't explicit when I was asking about the 
> differences.
> 
> I need to know what the differences in the workers.properties file are 
> regarding the virtual name hosts and whether each virtual host requires 
> a separate worker.
> 
> If not so, how would I assign several virtual hosts to a worker?
>

you dont need to modify your workers.properties, the "default" will do
fine.

mod_jk passes the hostname as defined in the apache's virtualhost to 
tomcat.

regards,

--
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello Staf,

thanks for the reply. I wasn't explicit when I was asking about the 
differences.

I need to know what the differences in the workers.properties file are 
regarding the virtual name hosts and whether each virtual host requires 
a separate worker.

If not so, how would I assign several virtual hosts to a worker?

Sincerely

Michael Kastner

staf wagemakers schrieb:
On Tue, Mar 23, 2004 at 04:14:56PM +0100, Michael Kastner wrote:

Depends on what you mean by "virtualhosts", if you have one tomcat
server with several virtualnamehosts it's possible to do it with one
ajp
connector.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is
very
similar.
thanks for your reply. Yes indeed, I mean virtual name hosts. I am 
wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc.

What do you mean with "similar"? What exactly is the difference?




It has been a while since I've setup apache with tomcat virtual hosting,
so I dont know it by heart.
Basically you've to define the hosts in the server.xml as describes in the
howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
in apache's httpd.conf (the virtual hosts in apache must have the same name 
as in tomcat) :

NameVirtualHost your_ip:80


ServerName site1
DocumentRoot /var/www/site1
JkMount /servlet/* ajp13 



ServerName site2
DocumentRoot /var/www/site2
JkMount /servlet/* ajp13

If I recall it correctly...




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: workers.properties and virtual hosts

2004-03-23 Thread staf wagemakers
On Tue, Mar 23, 2004 at 04:14:56PM +0100, Michael Kastner wrote:
> 
> >Depends on what you mean by "virtualhosts", if you have one tomcat
> >server with several virtualnamehosts it's possible to do it with one
> >ajp
> >connector.
> >
> >http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
> >
> >describes howto setup virtualhosts with jk2. The setup for jk1 is
> >very
> >similar.
>
> thanks for your reply. Yes indeed, I mean virtual name hosts. I am 
> wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc.
> 
> What do you mean with "similar"? What exactly is the difference?
> 
> 

It has been a while since I've setup apache with tomcat virtual hosting,
so I dont know it by heart.

Basically you've to define the hosts in the server.xml as describes in the
howto and configure jk1 as usual. Add the JkMounts within the virtualhosts
in apache's httpd.conf (the virtual hosts in apache must have the same name 
as in tomcat) :

NameVirtualHost your_ip:80


ServerName site1
DocumentRoot /var/www/site1
JkMount /servlet/* ajp13 



ServerName site2
DocumentRoot /var/www/site2
JkMount /servlet/* ajp13


If I recall it correctly...


-- 
Staf Wagemakers

email:  staf at patat.org
Homepage:   http://staf.patat.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello Staf,

thanks for your reply. Yes indeed, I mean virtual name hosts. I am 
wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc.

What do you mean with "similar"? What exactly is the difference?

Sincerely

Michael Kastner

staf wagemakers schrieb:
On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:

I am trying to install tomcat5 with apache 1.3 using the mod_jk connector.

On my test system I've got several virtual hosts. Do I have to create a 
separate worker for each virtual host?

E.g.:

worker.list= worker1, worker2, worker3

worker.worker1.type=ajp13
worker.worker1.host=host1.linuxstation2
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=host2.linuxstation2
worker.worker2.port=8009
worker.worker3.type=ajp13
worker.worker3.host=host3.linuxstation2
worker.worker3.port=8009
Any help is very much appreciated.



Depends on what you mean by "virtualhosts", if you have one tomcat
server with several virtualnamehosts it's possible to do it with one ajp
connector.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is very
similar.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Thanks Adrian,

that's very kind. Of cource, I had checked the documentation before I 
posted my initial question. It doesn't say anything about virtual hosts.

Thanks for your reply

Michael Kastner

Adrian Lanning schrieb:
JK tut:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
As staf pointed out you can use the same worker.  Use localhost.

Adrian

- Original Message - 
From: "staf wagemakers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 9:28 AM
Subject: Re: workers.properties and virtual hosts



On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:

I am trying to install tomcat5 with apache 1.3 using the mod_jk
connector.

On my test system I've got several virtual hosts. Do I have to create a
separate worker for each virtual host?
E.g.:

worker.list= worker1, worker2, worker3

worker.worker1.type=ajp13
worker.worker1.host=host1.linuxstation2
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=host2.linuxstation2
worker.worker2.port=8009
worker.worker3.type=ajp13
worker.worker3.host=host3.linuxstation2
worker.worker3.port=8009
Any help is very much appreciated.

Depends on what you mean by "virtualhosts", if you have one tomcat
server with several virtualnamehosts it's possible to do it with one ajp
connector.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is very
similar.
--
Staf Wagemakers
email: staf at patat.org
homepage: http://staf.patat.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: workers.properties and virtual hosts

2004-03-23 Thread Adrian Lanning
JK tut:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html

As staf pointed out you can use the same worker.  Use localhost.

Adrian

- Original Message - 
From: "staf wagemakers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 23, 2004 9:28 AM
Subject: Re: workers.properties and virtual hosts


> On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:
> >
> > I am trying to install tomcat5 with apache 1.3 using the mod_jk
connector.
> >
> > On my test system I've got several virtual hosts. Do I have to create a
> > separate worker for each virtual host?
> >
> > E.g.:
> >
> > worker.list= worker1, worker2, worker3
> >
> > worker.worker1.type=ajp13
> > worker.worker1.host=host1.linuxstation2
> > worker.worker1.port=8009
> >
> > worker.worker2.type=ajp13
> > worker.worker2.host=host2.linuxstation2
> > worker.worker2.port=8009
> >
> > worker.worker3.type=ajp13
> > worker.worker3.host=host3.linuxstation2
> > worker.worker3.port=8009
> >
> >
> > Any help is very much appreciated.
> >
>
> Depends on what you mean by "virtualhosts", if you have one tomcat
> server with several virtualnamehosts it's possible to do it with one ajp
> connector.
>
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
>
> describes howto setup virtualhosts with jk2. The setup for jk1 is very
> similar.
>
> -- 
> Staf Wagemakers
>
> email: staf at patat.org
> homepage: http://staf.patat.org
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workers.properties and virtual hosts

2004-03-23 Thread staf wagemakers
On Tue, Mar 23, 2004 at 02:01:34PM +0100, Michael Kastner wrote:
> 
> I am trying to install tomcat5 with apache 1.3 using the mod_jk connector.
> 
> On my test system I've got several virtual hosts. Do I have to create a 
> separate worker for each virtual host?
> 
> E.g.:
> 
> worker.list= worker1, worker2, worker3
> 
> worker.worker1.type=ajp13
> worker.worker1.host=host1.linuxstation2
> worker.worker1.port=8009
> 
> worker.worker2.type=ajp13
> worker.worker2.host=host2.linuxstation2
> worker.worker2.port=8009
> 
> worker.worker3.type=ajp13
> worker.worker3.host=host3.linuxstation2
> worker.worker3.port=8009
> 
> 
> Any help is very much appreciated.
>

Depends on what you mean by "virtualhosts", if you have one tomcat
server with several virtualnamehosts it's possible to do it with one ajp
connector.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

describes howto setup virtualhosts with jk2. The setup for jk1 is very
similar.

-- 
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



workers.properties and virtual hosts

2004-03-23 Thread Michael Kastner
Hello,

I've searched the archives and docs, but so far haven't found any hints 
on this topic:

I am trying to install tomcat5 with apache 1.3 using the mod_jk connector.

On my test system I've got several virtual hosts. Do I have to create a 
separate worker for each virtual host?

E.g.:

worker.list= worker1, worker2, worker3

worker.worker1.type=ajp13
worker.worker1.host=host1.linuxstation2
worker.worker1.port=8009
worker.worker2.type=ajp13
worker.worker2.host=host2.linuxstation2
worker.worker2.port=8009
worker.worker3.type=ajp13
worker.worker3.host=host3.linuxstation2
worker.worker3.port=8009
Any help is very much appreciated.

Sincerely

Michael Kastner

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


workers.properties file - connecting Tomcat to Apache

2003-12-30 Thread annimandary
I'm trying to connect Tomcat and Apache. Initially, I didn't have the
workers.properties file and got the following error when I started Tomcat:

Can't find workers.properties at
C:\jakarta-tomcat\conf\jk\workers.properties
Please install it in the default location or  set the config location
Using 
Starting service Tomcat-Standalone
Apache Tomcat/4.0.2
Starting service Tomcat-Apache
Apache Tomcat/4.0.2


So, I created the workers.properties file and saved it as a CONF file. Is
that how it should be saved? I placed it in the folder jk but I'm still
getting the same error as before. Can anyone please advise?


Here is what's written in the server.xml file:

 


The workers.properties file is as follows:
# Define some properties
workers.apache_log=C:\Program Files\Apache Group\Apache\logs 
workers.tomcat_home=C:\jakarta-tomcat
workers.java_home=C:\j2sdk1.4.2 
ps=/ 

# Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one
being a loadbalancing worker
worker.list=worker1, worker2, worker3, worker4 

# Set properties for worker1 (ajp12)
worker.worker1.type=ajp12 
worker.worker1.host=locahost 
worker.worker1.port=8007 
worker.worker1.lbfactor=5 

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13 
worker.worker2.host=locahost 
worker.worker2.port=8009 
worker.worker2.lbfactor=50 
worker.worker2.cachesize=10 
worker.worker2.cache_timeout=600 
worker.worker2.socket_keepalive=1 
worker.worker2.socket_timeout=300 

# Set properties for worker3 (jni)
worker.worker3.type=jni 

# Set worker3 bridge type, here Tomcat 3.3
worker.worker3.bridge=tomcat33 

# Set worker3 classpath
worker.worker3.class_path=$(workers.tomcat_home)$(ps)classes 
worker.worker3.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar 

# Set worker3 tomcat command line
worker.worker3.cmd_line=-home 
worker.worker3.cmd_line=$(workers.tomcat_home) 

# Set worker3 Tomcat/JVM settings
worker.worker3.stdout=$(workers.apache_log)$(ps)inprocess.stdout 
worker.worker3.stderr=$(workers.apache_log)$(ps)inprocess.stderr 
worker.worker3.sysprops=tomcat.home=$(workers.tomcat_home) 

# Set properties for worker4 (lb) which use worker1 and worker2
worker.worker4.balanced_workers=worker1,worker2 
worker.worker3.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps
)libjvm.so 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Workers.properties for 4.1.29

2003-11-24 Thread Walter do Valle
http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm


  - Original Message - 
  From: Roeland Meyer 
  To: Tomcat Users (E-mail) 
  Sent: Saturday, November 22, 2003 7:35 PM
  Subject: Workers.properties for 4.1.29


  does one exist and where can I get a example?

  The version for 3.x has huge differences and my Tomcat 4.1.29 does not have
  one (contrary to all the dox). I'm also following the IIS HOW-TO and finding
  huge descrepencies.

  -
  R O E L A N D  M J   M E Y E R
  Yahoo Messenger: roeland_meyer
  http://www.roelandmeyer.org

  Running Tomcat 4.1.29 under Windows 2K Advanced Server.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


Re: Workers.properties for 4.1.29

2003-11-23 Thread Christopher Schultz
Roeland,
does one exist and where can I get a example?

The version for 3.x has huge differences and my Tomcat 4.1.29 does not have
one (contrary to all the dox). I'm also following the IIS HOW-TO and finding
huge descrepencies.
The workers.properties file has more to do with the connector that you 
use to hook Apache (or some other web server) to Tomcat than with the 
version of Tomcat itself.

Check the version of the mod_jk/mod_jk2/mod_webapp, etc. that you are 
using for an example.

-chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Workers.properties for 4.1.29

2003-11-22 Thread Roeland Meyer
does one exist and where can I get a example?

The version for 3.x has huge differences and my Tomcat 4.1.29 does not have
one (contrary to all the dox). I'm also following the IIS HOW-TO and finding
huge descrepencies.

-
R O E L A N D  M J   M E Y E R
Yahoo Messenger: roeland_meyer
http://www.roelandmeyer.org

Running Tomcat 4.1.29 under Windows 2K Advanced Server.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: problem with workers.properties and Apache 1.3.28

2003-10-29 Thread Alexander Prohorenko
Hey.

I've  solved the problem by using IP addresses instead of FQDNs in the
workers file.

Wednesday, October 29, 2003, 12:48:52 PM, Tomcat Users List wrote:
> I had a similar problem today.  My workers file definitely existed but I kept 
> getting 'no such file' errors.
> It turned out I had the JkWorkersFile directive defined inside a  
> container.  Moving it outside solved the problem.

> Patrick


> On Wed, 29 Oct 2003 09:01 pm, Alexander Prohorenko wrote:
>> Hello,
>>
>> I can't get it run guys.
>>
>> That's what I have there:
>>
>> [Wed Oct 29 02:36:35 2003] [error] Error while opening the workers, jk will
>> not work
>>
>> [Wed Oct 29 02:36:36 2003] [info] mod_unique_id: using ip addr
>> 192.168.185.115 [Wed Oct 29 02:36:37 2003] [info] (2)No such file or
>> directory: make_sock: for port 443, setsockopt: (SO_ACCEPTFILTER) [Wed Oct
>> 29 02:36:37 2003] [info] (2)No such file or directory: make_sock: for port
>> 80, setsockopt: (SO_ACCEPTFILTER) [Wed Oct 29 02:36:37 2003] [error] (2)No
>> such file or directory: Error while opening the workers, jk will not work
>>
>> [Wed Oct 29 02:36:37 2003] [info] mod_unique_id: using ip addr
>> 192.168.185.115 [Wed Oct 29 02:36:38 2003] [notice] Apache/1.3.28 (Unix)
>> PHP/4.1.2 mod_ssl/2.8.15 OpenSSL/0.9.7a configured -- resuming normal
>> operations [Wed Oct 29 02:36:38 2003] [info] Server built: Aug  4 2003
>> 00:42:33 [Wed Oct 29 02:36:38 2003] [notice] Accept mutex: flock (Default:
>> flock)
>>
>>
>> However, everything exists.


> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Alexander Prohorenko


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: problem with workers.properties and Apache 1.3.28

2003-10-29 Thread Alexander Prohorenko
Hey.

This wasn't helpfull for me - still "no such file".

Wednesday, October 29, 2003, 12:48:52 PM, Tomcat Users List wrote:
> I had a similar problem today.  My workers file definitely existed but I kept 
> getting 'no such file' errors.
> It turned out I had the JkWorkersFile directive defined inside a  
> container.  Moving it outside solved the problem.

> Patrick


> On Wed, 29 Oct 2003 09:01 pm, Alexander Prohorenko wrote:
>> Hello,
>>
>> I can't get it run guys.
>>
>> That's what I have there:
>>
>> [Wed Oct 29 02:36:35 2003] [error] Error while opening the workers, jk will
>> not work
>>
>> [Wed Oct 29 02:36:36 2003] [info] mod_unique_id: using ip addr
>> 192.168.185.115 [Wed Oct 29 02:36:37 2003] [info] (2)No such file or
>> directory: make_sock: for port 443, setsockopt: (SO_ACCEPTFILTER) [Wed Oct
>> 29 02:36:37 2003] [info] (2)No such file or directory: make_sock: for port
>> 80, setsockopt: (SO_ACCEPTFILTER) [Wed Oct 29 02:36:37 2003] [error] (2)No
>> such file or directory: Error while opening the workers, jk will not work
>>
>> [Wed Oct 29 02:36:37 2003] [info] mod_unique_id: using ip addr
>> 192.168.185.115 [Wed Oct 29 02:36:38 2003] [notice] Apache/1.3.28 (Unix)
>> PHP/4.1.2 mod_ssl/2.8.15 OpenSSL/0.9.7a configured -- resuming normal
>> operations [Wed Oct 29 02:36:38 2003] [info] Server built: Aug  4 2003
>> 00:42:33 [Wed Oct 29 02:36:38 2003] [notice] Accept mutex: flock (Default:
>> flock)
>>
>>
>> However, everything exists.


> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Alexander Prohorenko


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with workers.properties and Apache 1.3.28

2003-10-29 Thread Patrick Herrera
I had a similar problem today.  My workers file definitely existed but I kept 
getting 'no such file' errors.
It turned out I had the JkWorkersFile directive defined inside a  
container.  Moving it outside solved the problem.

Patrick


On Wed, 29 Oct 2003 09:01 pm, Alexander Prohorenko wrote:
> Hello,
>
> I can't get it run guys.
>
> That's what I have there:
>
> [Wed Oct 29 02:36:35 2003] [error] Error while opening the workers, jk will
> not work
>
> [Wed Oct 29 02:36:36 2003] [info] mod_unique_id: using ip addr
> 192.168.185.115 [Wed Oct 29 02:36:37 2003] [info] (2)No such file or
> directory: make_sock: for port 443, setsockopt: (SO_ACCEPTFILTER) [Wed Oct
> 29 02:36:37 2003] [info] (2)No such file or directory: make_sock: for port
> 80, setsockopt: (SO_ACCEPTFILTER) [Wed Oct 29 02:36:37 2003] [error] (2)No
> such file or directory: Error while opening the workers, jk will not work
>
> [Wed Oct 29 02:36:37 2003] [info] mod_unique_id: using ip addr
> 192.168.185.115 [Wed Oct 29 02:36:38 2003] [notice] Apache/1.3.28 (Unix)
> PHP/4.1.2 mod_ssl/2.8.15 OpenSSL/0.9.7a configured -- resuming normal
> operations [Wed Oct 29 02:36:38 2003] [info] Server built: Aug  4 2003
> 00:42:33 [Wed Oct 29 02:36:38 2003] [notice] Accept mutex: flock (Default:
> flock)
>
>
> However, everything exists.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with workers.properties and Apache 1.3.28

2003-10-29 Thread Alexander Prohorenko
Hello,

I can't get it run guys.

That's what I have there:

[Wed Oct 29 02:36:35 2003] [error] Error while opening the workers, jk will not work

[Wed Oct 29 02:36:36 2003] [info] mod_unique_id: using ip addr 192.168.185.115
[Wed Oct 29 02:36:37 2003] [info] (2)No such file or directory: make_sock: for port 
443, setsockopt: (SO_ACCEPTFILTER)
[Wed Oct 29 02:36:37 2003] [info] (2)No such file or directory: make_sock: for port 
80, setsockopt: (SO_ACCEPTFILTER)
[Wed Oct 29 02:36:37 2003] [error] (2)No such file or directory: Error while opening 
the workers, jk will not work

[Wed Oct 29 02:36:37 2003] [info] mod_unique_id: using ip addr 192.168.185.115
[Wed Oct 29 02:36:38 2003] [notice] Apache/1.3.28 (Unix) PHP/4.1.2 mod_ssl/2.8.15 
OpenSSL/0.9.7a configured -- resuming normal operations
[Wed Oct 29 02:36:38 2003] [info] Server built: Aug  4 2003 00:42:33
[Wed Oct 29 02:36:38 2003] [notice] Accept mutex: flock (Default: flock)


However, everything exists.

-- 
Alexander Prohorenko























\\


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: simple workers.properties question (John Turner's how-to)

2003-08-28 Thread John Turner
It just needs to equal "location of tomcat".  I used to think it had to 
match the ServerName...it doesn't.  It's merely a pointer to the machine 
that is running Tomcat.  If Apache and Tomcat are on the same machine, 
then "localhost" is fine.

John

Denise Mangano wrote:

According to the how-to, I created the workers.properties file.  My
question is simple:
 
Is it ok to leave:
worker.ajp13.host = localhost
 
or should I change it to:
worker.ajp13.host = www.mydomain.com
 
In my httpd.conf my ServerName is www.mydomain.com, and in my server.xml
the Host name is www.mydomain.com
 
Thanks :)
 
Denise



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


simple workers.properties question (John Turner's how-to)

2003-08-28 Thread Denise Mangano
According to the how-to, I created the workers.properties file.  My
question is simple:
 
Is it ok to leave:
worker.ajp13.host = localhost
 
or should I change it to:
worker.ajp13.host = www.mydomain.com
 
In my httpd.conf my ServerName is www.mydomain.com, and in my server.xml
the Host name is www.mydomain.com
 
Thanks :)
 
Denise


RE: workers.properties

2002-12-18 Thread Turner, John

You only need it if you are using Apache + mod_jk + Tomcat.

John


> -Original Message-
> From: Rafael Fernandez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 18, 2002 12:27 PM
> To: [EMAIL PROTECTED]
> Subject: workers.properties
> 
> 
> For what is workers.properties? Do I need to make it? Can 
> somebody send
> me an example of workers.properties? I am using Windows. 
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




workers.properties

2002-12-18 Thread Rafael Fernandez
For what is workers.properties? Do I need to make it? Can somebody send
me an example of workers.properties? I am using Windows. 




workers.properties

2002-11-26 Thread Kristján Bjarni Guðmundsson

Return Receipt
   
Your  workers.properties   
document   
:  
   
was   Kristján Bjarni Guðmundsson/BIS/Dev/REK/Hugvit   
received   
by:
   
at:   26.11.2002 13:35:42  
   





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




workers.properties

2002-11-26 Thread Yossi Lev

I am working with apache 1.3.26 with tomcat 4.1.12 . I need help to config the file 
workers.properties .
And how I can do that I will use jk and put jk2 in disable

thanks



Yossi Lev
 MobileSpear
 



RE: loadbalancer in workers.properties

2002-09-23 Thread Turner, John


This the best doc on loadbalancing Tomcat:

http://www.ubeans.com/tomcat

John


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 9:50 PM
> To: [EMAIL PROTECTED]
> Subject: loadbalancer in workers.properties
> 
> 
> Hi All.
> The doco's suggested that I can have 1,2 or more Tomcats running
> (ideally one on each box).
> The scripts for httpd.conf suggested a piece if s/w called 
> "loadbalancer
> eg.
> ...
> DocumentRoot "/var/www/html"
> ...
> JkMount /*.jsp loadbalancer
> JkMount /servlet/* loadbalancer
> ***
> etc
> 
> Where can I download this "loadbalancer" ?
> 
> THX
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: loadbalancer in workers.properties

2002-09-23 Thread Turner, John


That would be my guess.  Typically, machines are NEVER rebooted for
configuration changes (UNIX machines, at least).

My guess is you have a process that starts on boot that is binding to a port
ahead of what you think is actually happening.  

If the configuration files do not change, rebooting should have no effect,
as the only thing that changes is the network stack and the ports are reset.

John


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 22, 2002 12:02 AM
> To: Tomcat Users List
> Subject: Re: loadbalancer in workers.properties
> 
> 
> David Cassidy wrote:
> > 
> > it's part of mod_jk
> I am totally flabbergasted...
> Bounce the servers and it works again. 
> I must have had some parameters not set correctly ???
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: loadbalancer in workers.properties

2002-09-22 Thread achana

David Cassidy wrote:
> 
> it's part of mod_jk
I am totally flabbergasted...
Bounce the servers and it works again. 
I must have had some parameters not set correctly ???

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: loadbalancer in workers.properties

2002-09-22 Thread achana

David Cassidy wrote:
> 
> it's part of mod_jk
Thanks
I've an unusual problem : I got Apache collaborating with Tomcat on the
same box. Then I seperated the two and it worked. I rebooted the
machines, now Apache won't talk with Tomcat. I looked in log/error_log ,
it seems the Apache machine keeps trying to look for the examples in the
same box rather than in the Tomcat box. Apache won't find it there
because I haev renamed that directory...

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: loadbalancer in workers.properties

2002-09-22 Thread David Cassidy

it's part of mod_jk

as I can assume that you have got mod_jk loaded and installed, working 
correctly
for one server I shall begin ...

In your workers.properties you will find an entry titled
worker.list

this will probably look like
worker.list=ajp13

You will then find the definition of ajp13 looking something like ...
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

The section of loadbalancer will look like ...
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13, ajp12

Now... Let us assume that you have 3 servers and they are all the same 
spec.
So you want to balance the load evenly..
( I am also assuming that you only have one apache server.)

ie your machines looks like :

+--+
|Apache|
+--+
|
++-+
|| |
+-+   +-+   +-+
| TC1 |   | TC2 |   | TC3 |
+-+   +-+   +-+

You need to define entries for your 3 tomcat servers...
( change the IP's to match yours..)

worker.TC1.port=8009
worker.TC1.host=192.168.10.1
worker.TC1.type=ajp13
worker.TC1.lbfactor=1

worker.TC2.port=8009
worker.TC2.host=192.168.10.2
worker.TC2.type=ajp13
worker.TC2.lbfactor=1

worker.TC3.port=8009
worker.TC3.host=192.168.10.3
worker.TC3.type=ajp13
worker.TC3.lbfactor=1

change these to match the above :

worker.loadbalancer.balanced_workers=TC1,TC2,TC3
worker.list=loadbalancer


And Bingo you have a working loadbalanced trio of Tomcat servers.

If you have 3 apache servers  ie like

+-+   +-+   +-+
| A 1 |   | A 2 |   | A 3 |
+-+   +-+   +-+
|| |
++-+
 |
 |
++-+
|| |
+-+   +-+   +-+
| TC1 |   | TC2 |   | TC3 |
+-+   +-+   +-+

you just need to setup the same workers.properties on all the apache 
servers...

Hope this helps

David




[EMAIL PROTECTED] wrote:

>Hi All.
>The doco's suggested that I can have 1,2 or more Tomcats running
>(ideally one on each box).
>The scripts for httpd.conf suggested a piece if s/w called "loadbalancer
>eg.
>...
>DocumentRoot "/var/www/html"
>...
>JkMount /*.jsp loadbalancer
>JkMount /servlet/* loadbalancer
>***
>etc
>
>Where can I download this "loadbalancer" ?
>
>THX
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




loadbalancer in workers.properties

2002-09-21 Thread achana

Hi All.
The doco's suggested that I can have 1,2 or more Tomcats running
(ideally one on each box).
The scripts for httpd.conf suggested a piece if s/w called "loadbalancer
eg.
...
DocumentRoot "/var/www/html"
...
JkMount /*.jsp loadbalancer
JkMount /servlet/* loadbalancer
***
etc

Where can I download this "loadbalancer" ?

THX

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




workers.properties

2002-07-09 Thread Johnny


 To all Tomcat users,

 I set LD_LIBRARY_PATH as the environment variable (export
LD_LIBRARY_PATH=/usr/lib)inside my Linux machine, and tried to access the
".so" file in "/usr/lib" directory from Java class file in Tomcat. But it
seem like Tomcat cannot locate the directory.

 From "Tomcat-Workers-HowTo.html" -
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/Tomcat-Workers-HowTo.html,
how can I set additional dynamic libraries path inside "workers.properties"?

 Something like this -> worker.inprocess.ld_path=/usr/lib ??

 Or is there any other extra configuration file that I need to edit as well?

 Regards,
 Johnny.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Where is workers.properties???

2002-06-13 Thread Luca Zancan

Thank you very much,

I've downloaded "jakarta-tomcat-connectors...src.tar.gz" and now I'll try to
setup it.
(first I'll read all the documentation I've found in the "jk/doc" subdiretory)

Thanks again.

Luca


zibie wrote:

> > My question is: where is the workers.properties file???
> > Is it not generated automatically???
> >
> > I've downloaded a binary version of mod_jk (mod_jk-01.so) and therefore
> > I've not compiled it: I've simply copied it in
> > /usr/local/apache/libexec/mod_jk.so...
>
> AFAIK workers.properties is not create automically.
> Simply copy exist file from
>
> # jakarta-tomcat-connectors-4.0.2-01-src/jk/conf/workers.properties
>
> or i miss something.
>
> regards
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Where is workers.properties???

2002-06-13 Thread zibie

> My question is: where is the workers.properties file???
> Is it not generated automatically???
> 
> I've downloaded a binary version of mod_jk (mod_jk-01.so) and therefore
> I've not compiled it: I've simply copied it in
> /usr/local/apache/libexec/mod_jk.so...

AFAIK workers.properties is not create automically.
Simply copy exist file from

# jakarta-tomcat-connectors-4.0.2-01-src/jk/conf/workers.properties

or i miss something.

regards



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Where is workers.properties???

2002-06-13 Thread Luca Zancan

Hi everybody,

I'm an absolute beginner with Tomcat and I'm installing Tomcat 4.0.3 on
a Linux RedHat 7.2  (kernel 2.4.7-10).
I'm trying to use AJP connector 1.3 to make Tomcat work with Apache
1.3.24.

Tomcat works great in standalone mode: no problems (Ive tested with
http:/192.168.254.1:8080)

Now I'd like to integrate Tomcat with Apache.

I've inserted the following directives in the "server.xml" file:

under "
and a similar Listener directive under "

and indeed this have created 2 directories under $CATALINA_HOME/conf,
called "auto" and "jk".
In $CATALINA_HOME/conf/auto I find the file mod_jk.conf (correct: I'll
use it in an include statement in my httpd.conf later...)
But the $CATALINA_HOME/conf/jk directory is empty.

My question is: where is the workers.properties file???
Is it not generated automatically???

I've downloaded a binary version of mod_jk (mod_jk-01.so) and therefore
I've not compiled it: I've simply copied it in
/usr/local/apache/libexec/mod_jk.so...

Probably I'm missing something...

Thank you very much for your help.

Bye,
Luca
__

Luca Zancan
Logica S.r.l.
e-mail [EMAIL PROTECTED]
URL http://www.logicaonline.com
__



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Mod_jk not finding workers.properties

2002-06-12 Thread Ryan McDonough

I'm trying to get mod_jk configured on both Mac OS X and Solaris 8. Both
systems are running Apache 1.3.23 and Tomcat 4.0.3. I have built mod_jk from
the sources found in the jakarta-tomcat-connectors package and the build
went smoothly on both systems. I have configured Tomcat to auto generat the
mod_jk.conf file and that too appears fine. The problem I am having involves
Apache. Each time I try to start Apache, with mod_jk enabled, the server
will not start and I find this message in the error:

[Wed Jun 12 14:27:40 2002] [emerg] (2)No such file or directory: Error while
opening the workers

I do have a workers.properties file in Tomcats conf directory. I have double
check everything from permissions to making sure the file is named correctly
and I still get the same error on both systems. Any ideas?

Ryan-


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Mod_jk not finding workers.properties

2002-06-12 Thread Ryan McDonough

Yup, already had that in there and and the path to the workers.propeties
file is correct in both cases. That¹s what's weird about the whole thing.
Any other thoughts?

Ryan-




On 6/12/02 3:00 PM, "Nick Wesselman" <[EMAIL PROTECTED]> wrote:

> Your mod_jk configuration (either in or included in your httpd.conf)
> specifies the location of the workers.properties file.
> 
> 
> 
> JkWorkersFile /usr/local/apache/conf/mod_jk/workers.properties
> JkLogFile  /usr/local/apache/logs/mod_jk.log
> JkLogLevel error
> 
> 
> 
> Nick
> 
> On Wednesday, June 12, 2002, at 01:53 PM, Ryan McDonough wrote:
> 
>> I'm trying to get mod_jk configured on both Mac OS X and Solaris 8. Both
>> systems are running Apache 1.3.23 and Tomcat 4.0.3. I have built mod_jk
>> from
>> the sources found in the jakarta-tomcat-connectors package and the build
>> went smoothly on both systems. I have configured Tomcat to auto generat
>> the
>> mod_jk.conf file and that too appears fine. The problem I am having
>> involves
>> Apache. Each time I try to start Apache, with mod_jk enabled, the server
>> will not start and I find this message in the error:
>> 
>> [Wed Jun 12 14:27:40 2002] [emerg] (2)No such file or directory: Error
>> while
>> opening the workers
>> 
>> I do have a workers.properties file in Tomcats conf directory. I have
>> double
>> check everything from permissions to making sure the file is named
>> correctly
>> and I still get the same error on both systems. Any ideas?
>> 
>> Ryan-
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <mailto:tomcat-user-
>> [EMAIL PROTECTED]>
>> For additional commands, e-mail: <mailto:tomcat-user-
>> [EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Mod_jk not finding workers.properties

2002-06-12 Thread Nick Wesselman

Your mod_jk configuration (either in or included in your httpd.conf) 
specifies the location of the workers.properties file.



JkWorkersFile /usr/local/apache/conf/mod_jk/workers.properties
JkLogFile  /usr/local/apache/logs/mod_jk.log
JkLogLevel error



Nick

On Wednesday, June 12, 2002, at 01:53 PM, Ryan McDonough wrote:

> I'm trying to get mod_jk configured on both Mac OS X and Solaris 8. Both
> systems are running Apache 1.3.23 and Tomcat 4.0.3. I have built mod_jk 
> from
> the sources found in the jakarta-tomcat-connectors package and the build
> went smoothly on both systems. I have configured Tomcat to auto generat 
> the
> mod_jk.conf file and that too appears fine. The problem I am having 
> involves
> Apache. Each time I try to start Apache, with mod_jk enabled, the server
> will not start and I find this message in the error:
>
> [Wed Jun 12 14:27:40 2002] [emerg] (2)No such file or directory: Error 
> while
> opening the workers
>
> I do have a workers.properties file in Tomcats conf directory. I have 
> double
> check everything from permissions to making sure the file is named 
> correctly
> and I still get the same error on both systems. Any ideas?
>
> Ryan-
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Mod_jk not finding workers.properties

2002-06-12 Thread Ryan McDonough

I'm trying to get mod_jk configured on both Mac OS X and Solaris 8. Both
systems are running Apache 1.3.23 and Tomcat 4.0.3. I have built mod_jk from
the sources found in the jakarta-tomcat-connectors package and the build
went smoothly on both systems. I have configured Tomcat to auto generat the
mod_jk.conf file and that too appears fine. The problem I am having involves
Apache. Each time I try to start Apache, with mod_jk enabled, the server
will not start and I find this message in the error:

[Wed Jun 12 14:27:40 2002] [emerg] (2)No such file or directory: Error while
opening the workers

I do have a workers.properties file in Tomcats conf directory. I have double
check everything from permissions to making sure the file is named correctly
and I still get the same error on both systems. Any ideas?

Ryan-


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




workers.properties configuration

2002-03-15 Thread Ronnie T Livingston

Hi, Im trying to setup a test load balanced configuration consisting of 3
machines.  Ive read Mr.Forget's tutorial but I couldnt really follow at a
certain point (modifying the server.xml) since i am using an older version
of tomcat.

Ive also read the Tomcat Workers how-to and im a little confused.  Do we
create this configuration on all the tomcat servers?  Once we configure
the workers.properties is there any other files needed to configure or
should it start balancing?

If anyone knows of any other tutorials or guides to using
workers.properties for load balancing I would be very much appreciative.

I am using Apache 1.3.19 and Tomcat 3.2.3

thanks,
Ronnie


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_jk: Auto reloading workers.properties file.

2002-02-14 Thread jonathan

On Thu, Feb 14, 2002 at 04:43:38PM -0500, Matt Egyhazy wrote:
> how does this affect performance?  i think that is the major concern with
> all 'reloading' features.

I'm not sure... :) I only just got it working, so I'm still testing it.

Every time an endpoint to a tomcat is requested I stat the
workers.properties file, if it has changed, the load-balancer
reconfigures itself. The reconfiguration does cause a small delay
response to any incoming requests as mod_jk has to open a new socket to
the desired tomcat.

Put it this way, I think it is quicker to reload the load-balanced
workers than to do a graceful apache restart. It is also cool to edit
the properties file, save it, and watch an immediate change in the
results coming to the script hammering your website... :)

I'm thinking about adding a minimum time between stats on the
workers.properties file. :)

Note: Currently the code only supports reconfiguring workers that are
under a load-balancer.

I guess this functionality is only required if you are frequently changing
the workers.properties file for some reason.

Anyone got any other ideas/requests and more importantly advice?

Jonathan.

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_jk: Auto reloading workers.properties file.

2002-02-14 Thread Matt Egyhazy

how does this affect performance?  i think that is the major concern with
all 'reloading' features.

matt
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 3:56 PM
Subject: mod_jk: Auto reloading workers.properties file.


> Hi all,
>
> I've written a small patch for mod_jk that automaticly reloads the
> workers.properties file when ever it is changed.
>
> Currently it only works with apache-1.3 but it trivial to make it work
> with the others.
>
> Is anyone interested in using this patch?
>
> Jonathan.
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




mod_jk: Auto reloading workers.properties file.

2002-02-14 Thread jonathan

Hi all,

I've written a small patch for mod_jk that automaticly reloads the
workers.properties file when ever it is changed.

Currently it only works with apache-1.3 but it trivial to make it work
with the others.

Is anyone interested in using this patch?

Jonathan.

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: worker.tomcat_home etc in mod_jk's workers.properties

2002-01-25 Thread Pascal Forget

John Holman wrote:

> Can anyone explain the purpose of the
> worker.tomcat_home, worker.java_home and ps
> entries in mod_jk's workers.properties file?
>
> My understanding is that workers.properties
> is used only to configure the mod_jk webserver
> plugin, and I'm at a loss to see why that would
> need to know anything about Tomcat or Java.
> (Anything that Tomcat needs to know should surely
> be specified in the server.xml configuration file
> anyway).
>
> Indeed when mod_jk is deployed on a system without
> either Java or Tomcat installed (because these
> are running on a different host) these entries
> are meaningless - and things seem to work OK
> if you just miss them out.
> 
> What am I missing?

Nothing.  I verified your assumptions and you are right.
I created a worker.properties file which does not contain
worker.tomcat_home or worker.java_home and I placed it
under /usr/local/apache/conf.  And it works.

See: http://www.ubeans.com/tomcat

Regards,

Pascal






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: worker.tomcat_home etc in mod_jk's workers.properties

2002-01-25 Thread Larry Isaacs

worker.tomcat_home is not used with the mod_jk connector.
However, the IIS and Netscape connectors are mod_jk based and
allow Tomcat to be run in-process.  It is for the in-process
worker that this setting is used.

Cheers,
Larry

> -Original Message-
> From: John Holman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 5:24 PM
> To: Tomcat Users List
> Subject: worker.tomcat_home etc in mod_jk's workers.properties
> 
> 
> Can anyone explain the purpose of the worker.tomcat_home,  
> worker.java_home 
> and ps entries in mod_jk's workers.properties file?
> 
> My understanding is that workers.properties is used only to 
> configure the 
> mod_jk webserver plugin, and I'm at a loss to see why that 
> would need to
> know anything about Tomcat or Java. (Anything that Tomcat 
> needs to know 
> should surely be specified in the server.xml configuration 
> file anyway).
> 
> Indeed when mod_jk is deployed on a system without either 
> Java or Tomcat 
> installed (because these are running on a different host) 
> these entries are 
> meaningless - and things seem to work OK if you just miss them out.
> 
> What am I missing?
> 
> Thanks, John.
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




worker.tomcat_home etc in mod_jk's workers.properties

2002-01-24 Thread John Holman

Can anyone explain the purpose of the worker.tomcat_home,  worker.java_home 
and ps entries in mod_jk's workers.properties file?

My understanding is that workers.properties is used only to configure the 
mod_jk webserver plugin, and I'm at a loss to see why that would need to
know anything about Tomcat or Java. (Anything that Tomcat needs to know 
should surely be specified in the server.xml configuration file anyway).

Indeed when mod_jk is deployed on a system without either Java or Tomcat 
installed (because these are running on a different host) these entries are 
meaningless - and things seem to work OK if you just miss them out.

What am I missing?

Thanks, John.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: jkconf? Does it work in 4.0.1? Where's workers.properties?

2001-12-19 Thread Larry Isaacs

There is are some examples of the file contents which
may be found at:

<http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s9>

Bill Barker has ported the ApacheConfig to jakarta-tomcat-connectors,
so some configuration file generation should be available in the
next release of Tomcat 4.x.  I don't know how much documentation
will be available at that time.

Cheers,
Larry

> -Original Message-
> From: Scott Merritt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 7:30 PM
> To: 'Tomcat Users List'
> Subject: RE: jkconf? Does it work in 4.0.1? Where's 
> workers.properties?
> 
> 
> Is it possible to manually create these?  I mean, where do I 
> find out what
> goes in a workers.properties file?  I have no clue without 
> installing 3.3,
> and I'm guessing I'll have to do some tweaking on the files 
> it generates.
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 5:09 AM
> To: 'Tomcat Users List'
> Subject: RE: jkconf? Does it work in 4.0.1? Where's 
> workers.properties?
> 
> 
> Tomcat 4.x originally came with just mod_webapp as the
> connector, which doesn't require these extra files that
> mod_jk does.  Integration of mod_jk support with Tomcat 4.x
> is still on going.  Since Tomcat 3.x is quite different
> from Tomcat 4.x (compare server.xml files for example),
> is means that some of what you find in the Tomcat 3.3
> documentation isn't going to apply to Tomcat 4.x.  The
> "jkconf" option is a good example.  This is a feature that
> applies only to Tomcat 3.3.  None of the Tomcat 4.x releases
> does auto-config generation (mod_webapp didn't need it).  I
> believe the next releases of Tomcat 4.x will contain some
> support for this.  For the time being you have to
> create them manually, or if you feel like investing in
> the disk space, install a version Tomcat 3.3 to help
> generate them.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Scott Merritt [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 17, 2001 6:50 PM
> > To: 'Tomcat Users List'
> > Subject: jkconf? Does it work in 4.0.1? Where's workers.properties?
> > 
> > 
> > Hmm... My next question is, how come I can't find a 
> > workers.properties file?
> > 
> > I'm using Tomcat 4.0.1 and trying to get it to autgen the 
> > config files...
> > None of these generate anything:
> > ./startup.sh jkconf
> > ./catalina.sh jkconf
> > 
> > Okay...  So I figured I'd do it manually, but I don't see any
> > workers.properties file to follow the "simple" example in the 
> > 3.3 mod_jk
> > docs 
> > (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html)
> > 
> > Hmm...  Now what?  Confused.  Does Tomcat 4 not do this conf writing
> > anymore?
> > 
> > --
> > To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: jkconf? Does it work in 4.0.1? Where's workers.properties?

2001-12-18 Thread Kwan, Kenneth Y

Just copy the workers.properties from 3.x

Kenneth

-Original Message-
From: Scott Merritt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:30 AM
To: 'Tomcat Users List'
Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties?


Is it possible to manually create these?  I mean, where do I find out what
goes in a workers.properties file?  I have no clue without installing 3.3,
and I'm guessing I'll have to do some tweaking on the files it generates.

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:09 AM
To: 'Tomcat Users List'
Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties?


Tomcat 4.x originally came with just mod_webapp as the
connector, which doesn't require these extra files that
mod_jk does.  Integration of mod_jk support with Tomcat 4.x
is still on going.  Since Tomcat 3.x is quite different
from Tomcat 4.x (compare server.xml files for example),
is means that some of what you find in the Tomcat 3.3
documentation isn't going to apply to Tomcat 4.x.  The
"jkconf" option is a good example.  This is a feature that
applies only to Tomcat 3.3.  None of the Tomcat 4.x releases
does auto-config generation (mod_webapp didn't need it).  I
believe the next releases of Tomcat 4.x will contain some
support for this.  For the time being you have to
create them manually, or if you feel like investing in
the disk space, install a version Tomcat 3.3 to help
generate them.

Cheers,
Larry

> -Original Message-
> From: Scott Merritt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 6:50 PM
> To: 'Tomcat Users List'
> Subject: jkconf? Does it work in 4.0.1? Where's workers.properties?
> 
> 
> Hmm... My next question is, how come I can't find a 
> workers.properties file?
> 
> I'm using Tomcat 4.0.1 and trying to get it to autgen the 
> config files...
> None of these generate anything:
> ./startup.sh jkconf
> ./catalina.sh jkconf
> 
> Okay...  So I figured I'd do it manually, but I don't see any
> workers.properties file to follow the "simple" example in the 
> 3.3 mod_jk
> docs 
> (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html)
> 
> Hmm...  Now what?  Confused.  Does Tomcat 4 not do this conf writing
> anymore?
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: jkconf? Does it work in 4.0.1? Where's workers.properties?

2001-12-18 Thread Scott Merritt

Is it possible to manually create these?  I mean, where do I find out what
goes in a workers.properties file?  I have no clue without installing 3.3,
and I'm guessing I'll have to do some tweaking on the files it generates.

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:09 AM
To: 'Tomcat Users List'
Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties?


Tomcat 4.x originally came with just mod_webapp as the
connector, which doesn't require these extra files that
mod_jk does.  Integration of mod_jk support with Tomcat 4.x
is still on going.  Since Tomcat 3.x is quite different
from Tomcat 4.x (compare server.xml files for example),
is means that some of what you find in the Tomcat 3.3
documentation isn't going to apply to Tomcat 4.x.  The
"jkconf" option is a good example.  This is a feature that
applies only to Tomcat 3.3.  None of the Tomcat 4.x releases
does auto-config generation (mod_webapp didn't need it).  I
believe the next releases of Tomcat 4.x will contain some
support for this.  For the time being you have to
create them manually, or if you feel like investing in
the disk space, install a version Tomcat 3.3 to help
generate them.

Cheers,
Larry

> -Original Message-
> From: Scott Merritt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 6:50 PM
> To: 'Tomcat Users List'
> Subject: jkconf? Does it work in 4.0.1? Where's workers.properties?
> 
> 
> Hmm... My next question is, how come I can't find a 
> workers.properties file?
> 
> I'm using Tomcat 4.0.1 and trying to get it to autgen the 
> config files...
> None of these generate anything:
> ./startup.sh jkconf
> ./catalina.sh jkconf
> 
> Okay...  So I figured I'd do it manually, but I don't see any
> workers.properties file to follow the "simple" example in the 
> 3.3 mod_jk
> docs 
> (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html)
> 
> Hmm...  Now what?  Confused.  Does Tomcat 4 not do this conf writing
> anymore?
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: jkconf? Does it work in 4.0.1? Where's workers.properties?

2001-12-18 Thread Larry Isaacs

Tomcat 4.x originally came with just mod_webapp as the
connector, which doesn't require these extra files that
mod_jk does.  Integration of mod_jk support with Tomcat 4.x
is still on going.  Since Tomcat 3.x is quite different
from Tomcat 4.x (compare server.xml files for example),
is means that some of what you find in the Tomcat 3.3
documentation isn't going to apply to Tomcat 4.x.  The
"jkconf" option is a good example.  This is a feature that
applies only to Tomcat 3.3.  None of the Tomcat 4.x releases
does auto-config generation (mod_webapp didn't need it).  I
believe the next releases of Tomcat 4.x will contain some
support for this.  For the time being you have to
create them manually, or if you feel like investing in
the disk space, install a version Tomcat 3.3 to help
generate them.

Cheers,
Larry

> -Original Message-
> From: Scott Merritt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 6:50 PM
> To: 'Tomcat Users List'
> Subject: jkconf? Does it work in 4.0.1? Where's workers.properties?
> 
> 
> Hmm... My next question is, how come I can't find a 
> workers.properties file?
> 
> I'm using Tomcat 4.0.1 and trying to get it to autgen the 
> config files...
> None of these generate anything:
> ./startup.sh jkconf
> ./catalina.sh jkconf
> 
> Okay...  So I figured I'd do it manually, but I don't see any
> workers.properties file to follow the "simple" example in the 
> 3.3 mod_jk
> docs 
> (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html)
> 
> Hmm...  Now what?  Confused.  Does Tomcat 4 not do this conf writing
> anymore?
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




jkconf? Does it work in 4.0.1? Where's workers.properties?

2001-12-17 Thread Scott Merritt

Hmm... My next question is, how come I can't find a workers.properties file?

I'm using Tomcat 4.0.1 and trying to get it to autgen the config files...
None of these generate anything:
./startup.sh jkconf
./catalina.sh jkconf

Okay...  So I figured I'd do it manually, but I don't see any
workers.properties file to follow the "simple" example in the 3.3 mod_jk
docs (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html)

Hmm...  Now what?  Confused.  Does Tomcat 4 not do this conf writing
anymore?

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Load balancing entry in workers.properties

2001-10-22 Thread Shahed A Moolji

 
Hi,

I am NOT using load balancing features of TC 3.2.3
w/Apache / mod_jk.

But I have an entry in the workers.properties that defines
a load balancer thread like 
lb=ajp12,ajp13

I am not using JKMount  lb anywhere.

I just have JKMount  ajp13 in httpd.conf.

Will this extra entry in workers.properties create any overhead ?

Thanks
Shahed.




Re: workers.properties Configuration??

2001-06-21 Thread Scott Tatum

You don't have to configure it if you are running Tomcat standalone, but
you do have to configure it if you are running Tomcat with Apache. I am not
familiar with other webservers that Tomcat can connect with.

-Scott
--
Scott Tatum || [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom || http://www.worldcom.com/


Brenda Mijares wrote:

> I heard somewhere that is you have tomcat on a unix box you do NOT need
> to configure the workers.properties file 
>
> Has anyone else heard this or read this??






workers.properties Configuration??

2001-06-08 Thread Brenda Mijares

I heard somewhere that is you have tomcat on a unix box you do NOT need
to configure the workers.properties file 

Has anyone else heard this or read this??





jni worker in workers.properties

2001-06-08 Thread Brenda Mijares

Has anyone configured a jni worker in the workers.properties file??





RE: load balancing >> help docs wrt workers.properties not sufficien t >> plz help

2001-06-07 Thread Chauhan, Anand

Just have a look at the attached worker.props file.. It would make things clear for 
you.. And if the problems persists let me know.. 

all the best,
-Andy

-Original Message-
From: Paul Tan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:13 PM
To: [EMAIL PROTECTED]
Subject: Re: load balancing >> help docs wrt workers.properties not
sufficien t >> plz help 


Would u be so kind to tell me what you placed into workers.properties to
make that work??? :)
Thks again,

Paul
- Original Message -
From: "Chauhan, Anand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 10:37 AM
Subject: RE: load balancing >> help docs wrt workers.properties not
sufficien t >> plz help


> Okay guyz .. I fixed it .. It is pretty easy to go for load balancing
using tomcat..
>
> -Original Message-
> From: Chauhan, Anand
> Sent: Wednesday, June 06, 2001 9:19 PM
> To: [EMAIL PROTECTED]
> Subject: load balancing >> help docs wrt workers.properties not
> sufficien t >> plz help
>
>
> Hi All:
>
> Please help me with the load balancing feature in Tomcat3 3.2.1
>
> -Andy
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -Original Message-
> From: Chauhan, Anand
> Sent: Wednesday, June 06, 2001 8:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: LOAD BALANCING
>
>
> I tried refering to the workers.properties file, but didn't find the
information complete enough to set up my process. I have completed defining
the two workers in the workers.properties file. Secondly I have set up the
load balancer (type lb) to point to the two workers which I have removed
from the list.
>
> Let me know what the further steps.. I am stuck..
>
> Thanks in advance,
> -Andy
>
> -Original Message-
> From: Chauhan, Anand
> Sent: Wednesday, June 06, 2001 8:00 PM
> To: [EMAIL PROTECTED]
> Subject: LOAD BALANCING
>
>
> Hi,
>
> I would like to know of a good reference site for load-balancing in
Tomcat.
>
> -Andy
>
> -Original Message-
> From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 12:53 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Apache and Tomcat on different boxes
>
>
> also... if you want *MY* opinion.. I would use a PROXY statement like
this:
>
> PROXYPASS /javaserver
http://hostnameserver2:8080/path-for-servlets-or-jsps
> PROXYPASS /javaserver/
> http://hostnameserver2:8080/path-for-servlets-or-jsps/
>
> Why not keep them seperate, completely?
>
> -Original Message-
> From: Chauhan, Anand [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 10:21 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Apache and Tomcat on different boxes
>
>
> Thanks for the reply, but I am still facing the problem. I placed the
> worker.properties file in the apache/conf directory and made the http.conf
> file point to this worker.properties file. But to no avail.
>
> Help required.
>
> Thanks in advance,
> -Andy
>
> -Original Message-
> From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Apache and Tomcat on different boxes
>
>
> On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
> > The idea seems great. But how would you access the worker.properties
file
> on the remote machine. Or is it that, as suggested, you would be
"creating"
> a  worker.properties file in the conf/worker.properties
>
> worker.properties exits so mod_jk can create the worker handlers.
> You will need to have worker.properties accessible to apache, however, the
> servlet engines can be in different hosts.
>
> hugs, rms
>
> --
> + No matter how much you do, you never do enough -- unknown
> + Whatever you do will be insignificant,
> | but it is very important that you do it -- Ghandi
> + So let's do it...?
>


 workers.properties


Re: load balancing >> help docs wrt workers.properties not sufficien t >> plz help

2001-06-06 Thread Paul Tan

Would u be so kind to tell me what you placed into workers.properties to
make that work??? :)
Thks again,

Paul
- Original Message -
From: "Chauhan, Anand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 10:37 AM
Subject: RE: load balancing >> help docs wrt workers.properties not
sufficien t >> plz help


> Okay guyz .. I fixed it .. It is pretty easy to go for load balancing
using tomcat..
>
> -Original Message-
> From: Chauhan, Anand
> Sent: Wednesday, June 06, 2001 9:19 PM
> To: [EMAIL PROTECTED]
> Subject: load balancing >> help docs wrt workers.properties not
> sufficien t >> plz help
>
>
> Hi All:
>
> Please help me with the load balancing feature in Tomcat3 3.2.1
>
> -Andy
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -Original Message-
> From: Chauhan, Anand
> Sent: Wednesday, June 06, 2001 8:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: LOAD BALANCING
>
>
> I tried refering to the workers.properties file, but didn't find the
information complete enough to set up my process. I have completed defining
the two workers in the workers.properties file. Secondly I have set up the
load balancer (type lb) to point to the two workers which I have removed
from the list.
>
> Let me know what the further steps.. I am stuck..
>
> Thanks in advance,
> -Andy
>
> -Original Message-
> From: Chauhan, Anand
> Sent: Wednesday, June 06, 2001 8:00 PM
> To: [EMAIL PROTECTED]
> Subject: LOAD BALANCING
>
>
> Hi,
>
> I would like to know of a good reference site for load-balancing in
Tomcat.
>
> -Andy
>
> -Original Message-
> From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 12:53 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Apache and Tomcat on different boxes
>
>
> also... if you want *MY* opinion.. I would use a PROXY statement like
this:
>
> PROXYPASS /javaserver
http://hostnameserver2:8080/path-for-servlets-or-jsps
> PROXYPASS /javaserver/
> http://hostnameserver2:8080/path-for-servlets-or-jsps/
>
> Why not keep them seperate, completely?
>
> -Original Message-
> From: Chauhan, Anand [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 10:21 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Apache and Tomcat on different boxes
>
>
> Thanks for the reply, but I am still facing the problem. I placed the
> worker.properties file in the apache/conf directory and made the http.conf
> file point to this worker.properties file. But to no avail.
>
> Help required.
>
> Thanks in advance,
> -Andy
>
> -Original Message-
> From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Apache and Tomcat on different boxes
>
>
> On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
> > The idea seems great. But how would you access the worker.properties
file
> on the remote machine. Or is it that, as suggested, you would be
"creating"
> a  worker.properties file in the conf/worker.properties
>
> worker.properties exits so mod_jk can create the worker handlers.
> You will need to have worker.properties accessible to apache, however, the
> servlet engines can be in different hosts.
>
> hugs, rms
>
> --
> + No matter how much you do, you never do enough -- unknown
> + Whatever you do will be insignificant,
> | but it is very important that you do it -- Ghandi
> + So let's do it...?
>




RE: load balancing >> help docs wrt workers.properties not sufficien t >> plz help

2001-06-06 Thread Chauhan, Anand

Okay guyz .. I fixed it .. It is pretty easy to go for load balancing using tomcat.. 

-Original Message-
From: Chauhan, Anand 
Sent: Wednesday, June 06, 2001 9:19 PM
To: [EMAIL PROTECTED]
Subject: load balancing >> help docs wrt workers.properties not
sufficien t >> plz help 


Hi All:

Please help me with the load balancing feature in Tomcat3 3.2.1 

-Andy




















-Original Message-
From: Chauhan, Anand 
Sent: Wednesday, June 06, 2001 8:04 PM
To: [EMAIL PROTECTED]
Subject: RE: LOAD BALANCING 


I tried refering to the workers.properties file, but didn't find the information 
complete enough to set up my process. I have completed defining the two workers in the 
workers.properties file. Secondly I have set up the load balancer (type lb) to point 
to the two workers which I have removed from the list. 

Let me know what the further steps.. I am stuck.. 

Thanks in advance,
-Andy

-Original Message-
From: Chauhan, Anand 
Sent: Wednesday, June 06, 2001 8:00 PM
To: [EMAIL PROTECTED]
Subject: LOAD BALANCING 


Hi,

I would like to know of a good reference site for load-balancing in Tomcat. 

-Andy

-Original Message-
From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Apache and Tomcat on different boxes


also... if you want *MY* opinion.. I would use a PROXY statement like this:

PROXYPASS /javaserver http://hostnameserver2:8080/path-for-servlets-or-jsps
PROXYPASS /javaserver/
http://hostnameserver2:8080/path-for-servlets-or-jsps/

Why not keep them seperate, completely?

-Original Message-
From: Chauhan, Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:21 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache and Tomcat on different boxes


Thanks for the reply, but I am still facing the problem. I placed the
worker.properties file in the apache/conf directory and made the http.conf
file point to this worker.properties file. But to no avail. 

Help required. 

Thanks in advance,
-Andy

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
> The idea seems great. But how would you access the worker.properties file
on the remote machine. Or is it that, as suggested, you would be "creating"
a  worker.properties file in the conf/worker.properties

worker.properties exits so mod_jk can create the worker handlers.
You will need to have worker.properties accessible to apache, however, the
servlet engines can be in different hosts.

hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



load balancing >> help docs wrt workers.properties not sufficient >> plz help

2001-06-06 Thread Chauhan, Anand

Hi All:

Please help me with the load balancing feature in Tomcat3 3.2.1 

-Andy




















-Original Message-
From: Chauhan, Anand 
Sent: Wednesday, June 06, 2001 8:04 PM
To: [EMAIL PROTECTED]
Subject: RE: LOAD BALANCING 


I tried refering to the workers.properties file, but didn't find the information 
complete enough to set up my process. I have completed defining the two workers in the 
workers.properties file. Secondly I have set up the load balancer (type lb) to point 
to the two workers which I have removed from the list. 

Let me know what the further steps.. I am stuck.. 

Thanks in advance,
-Andy

-Original Message-
From: Chauhan, Anand 
Sent: Wednesday, June 06, 2001 8:00 PM
To: [EMAIL PROTECTED]
Subject: LOAD BALANCING 


Hi,

I would like to know of a good reference site for load-balancing in Tomcat. 

-Andy

-Original Message-
From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Apache and Tomcat on different boxes


also... if you want *MY* opinion.. I would use a PROXY statement like this:

PROXYPASS /javaserver http://hostnameserver2:8080/path-for-servlets-or-jsps
PROXYPASS /javaserver/
http://hostnameserver2:8080/path-for-servlets-or-jsps/

Why not keep them seperate, completely?

-Original Message-
From: Chauhan, Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:21 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache and Tomcat on different boxes


Thanks for the reply, but I am still facing the problem. I placed the
worker.properties file in the apache/conf directory and made the http.conf
file point to this worker.properties file. But to no avail. 

Help required. 

Thanks in advance,
-Andy

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Apache and Tomcat on different boxes


On Wed, Jun 06, 2001 at 11:23:07AM -0400, Chauhan, Anand wrote:
> The idea seems great. But how would you access the worker.properties file
on the remote machine. Or is it that, as suggested, you would be "creating"
a  worker.properties file in the conf/worker.properties

worker.properties exits so mod_jk can create the worker handlers.
You will need to have worker.properties accessible to apache, however, the
servlet engines can be in different hosts.

hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



Different ports for ajp in workers.properties and server.xml

2001-02-01 Thread guyr



I'm experimenting 
with the ajp12 and ajp13 connectors.  There is a port setting for each of 
these in both workers.properties and server.xml.  What does it mean if I 
assign one port to (e.g.) ajp12 in workers.properties but give the ajp12 
connector a different port number in server.xml?
 
Guy Rouillier
571-226-1229
[EMAIL PROTECTED]
Domino Networks
2950 Gallows Road
Falls Church, VA 22042
 


mod_jserv vs. mod_jk (configuration questions for workers.properties)

2001-01-10 Thread Max Clark

I have been browsing through the documentation and have hit a wall. I want
to run Apache and Tomcat on separate machines. More than that I want to load
balance my Tomcat application servers. I have done this in the past using
mod_jserv to talk to jserv servers and it worked pretty well.

>From what I have gathered I want to use mod_jk with ajp v1.3. I understand
everything in the mod_jk.conf-auto and the workers.properties except... the
workers.properties file defines tomcat specific variables (i.e.
workers.tomcat_home, workers.java_home, classpaths etc...). How can I define
tomcat internals from an apache machine that doesn't have tomcat installed?
What do I need to define within the workers.properties to have my apache
machines connect to the tomcat machines.

Do I have to install tomcat on all of the machines? What about a jdk? Has
anybody done this? Can somebody help me with this config?

Thanks in advance,

-Max

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: workers.properties etc.

2000-12-28 Thread Dave Smith

Ralph,

worker.inprocess refers to the type of deployment
where tomcat is going to run in the webserver process.
Defacto, this applies to the Win32 scenario, not a
unix box where tomcat will run on it's own pid.
So (unless I am mistaken) this is a non-issue in your case.

There is actually quite a bit of documentation available,
but you need to d/l the src disto and read everything in
the docs folder, read server.xml comments in conf, and
finally look in the source folders for some "hidden" docs.
Confusing? Sure, but everything you are asking about is
in there.

> I'd also appreciate some more information concerning the interaction of
> server.xml, mod_jk.conf and worker.properties...

The source code for them all is available.

Regards,

Dave


- Original Message -
From: "Ralph Jensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 3:53 AM
Subject: workers.properties etc.


> Is there any documentation concerning the settings in workers.properties?
> The defaults which come with it are apparently for Windows but I'm using
> Linux.
>
> In particular:
> worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
> java wrapper JAVA_HOME/jre/bin/java ?
>
> I'd also appreciate some more information concerning the interaction of
> server.xml, mod_jk.conf and worker.properties. I've read through 'Working
> with mod_jk', 'Tomcat workers.properties' and the minimalistic Tomcat
users
> guide but I'm still a bit confused where to put my servlets and how to
load
> them from HTML - especially the use of 'servlet' and 'servlets'.
>
> Ralph Jensen
>
>
>




Re: workers.properties etc.

2000-12-28 Thread Pete Ehli

If the docs are confusing I agree, but the example given in Working with
mod_jk for the worker.properties file is for Solaris and I sure the
directory structure is very similar in Linux. The examples provided in
tomcat is a great way to see where to place your servlets and JSP pages,
also how to set up your web.xml file and set your server.xml. The only
difference when using Apache is you want Apache to serve your static content
which should be easy.
- Original Message -

From: "Ralph Jensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 1:53 AM
Subject: workers.properties etc.


> Is there any documentation concerning the settings in workers.properties?
> The defaults which come with it are apparently for Windows but I'm using
> Linux.
>
> In particular:
> worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
> java wrapper JAVA_HOME/jre/bin/java ?
>
> I'd also appreciate some more information concerning the interaction of
> server.xml, mod_jk.conf and worker.properties. I've read through 'Working
> with mod_jk', 'Tomcat workers.properties' and the minimalistic Tomcat
users
> guide but I'm still a bit confused where to put my servlets and how to
load
> them from HTML - especially the use of 'servlet' and 'servlets'.
>
> Ralph Jensen
>
>
>




workers.properties etc.

2000-12-28 Thread Ralph Jensen

Is there any documentation concerning the settings in workers.properties?
The defaults which come with it are apparently for Windows but I'm using
Linux.

In particular:
worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
java wrapper JAVA_HOME/jre/bin/java ?

I'd also appreciate some more information concerning the interaction of
server.xml, mod_jk.conf and worker.properties. I've read through 'Working
with mod_jk', 'Tomcat workers.properties' and the minimalistic Tomcat users
guide but I'm still a bit confused where to put my servlets and how to load
them from HTML - especially the use of 'servlet' and 'servlets'.

Ralph Jensen






Tomcat3.1 & workers.properties file

2000-12-04 Thread

Hi!

I think my previous mail was not sent out so here goes:

I am trying to set up load balancin between 2 tomcat servers. Just some simple 
questions:

Does the workers file works on tomcat 3.1 with mod_jserv?  I am runnin Redhat 6.2.  If 
it does, can you guys send me a copy of your worker.properties file? I tried usin the 
tomcat 3.2 workers file but couldnt get it workin.

Is there other configuration that I have to make other than the workers file?

Thanks a mil!
Samo



Tomcat 3.1 & workers.properties file

2000-12-03 Thread Samo Kwee

Hi,

Just some straight-forward question.

Does workers.properties file work under Tomcat 3.1 with mod_jserv?

If it does, anyone out there can send me a sample file?  I am using Redhat 6.2 with 
apache 1.3.14.

I have been tryin to get this work but seems like gettin nowhere close.  Pls help.

Thanks a mil!
Samo



RE: workers.properties & virtual hosts

2000-11-07 Thread Stubenrauch,Andreas

1.) The host in worker.properties is the host tomcat is running on (that's
not related to the the apache host. You can run tomcat on a different
machine than apache)

2.) You seem to have configured your mod_jk-Mounts yourself so you don't
have to bother with mod_jk.conf-auto. It's an auto-generated example ans
doesn't take all configuration into account.

3-5.) Your approach is almost correct, but if you want them running in
different JVMs you have to run multiple Tomcat-instances. So don't configure
your different ports in one server.xml but install and run tomcat multiple
times and with their own server.xml each.

/path/tomcat1/conf/server.xml (in there: port=8110)
/path/tomcat2/conf/server.xml (in there: port=8111)
...

$ /path/tomcat1/bin/startup.sh
$ /path/tomcat2/bin/startup.sh
...

Regards,
Andreas
> -Original Message-
> From: Dominique BATARD [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 07, 2000 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: workers.properties & virtual hosts
> 
> 
> Tomcat 3.2b6, Apache 1.3.14, NT 4
> 
> I'm running 3 virtual hosts and want to have each one his own JVM
> 
> In server.xml :
>  ...
>  ...
>  ...
> ...
>   
> In workers.properties :
> worker.list=ajp12, ajp13, ajp-8110, ajp-8111, ajp-8112
> 
> worker.ajp-8110.port=8110
> worker.ajp-8110.host=localhost
> worker.ajp-8110.type=ajp12
> worker.ajp-8110.lbfactor=1
> 
> worker.ajp-8111.host=localhost
> ...
> worker.ajp-8112.host=localhost
> ...
> worker.ajp-8007.host=localhost
> 
> In httpd.conf :
> NameVirtualHost 140.228.25.19
> 
>   ServerName host1
>   
>   JkMount /*.jsp ajp-8110
>   JkMount /servlet/* ajp-8110
> 
>   Idem for host2  ajp-8111 and host3 ... ajp8112
> 
> My question is :
> 1 - the worker's host property must be localhost or the vhost 
> server name ?
>  If I use the vhost server name, apache complains and 
> doesn't start
> 
> 2 - I don't see any trace of ajp-8110, ajp-8111, ajp-8112 in
> mod_jk.conf-auto
> 
> 3 - In NT task manager, I see only 1 JVM working
> 
> 4 - In jvm.stderr, I see the ContextManager: Adding context 
> for my vhosts
> thePoolTcpConnector : Starting of  my 
> Ajp12ConnectionHandler for my 4
> ports,
> but after stopping tomcat, I don't seeany stopping of the 
> 4 ports, and I
> don't see the ContextManager: Removing context of the third 
> vhost (host3).
> 
> 5 - In workers.properties :
>   worker.loadbalancer.type=lb
>   worker.loadbalancer.balanced_workers=ajp12, ajp13
>   The doc says the load balanced workers must NOT appear in the
> worker.list , but they do appear here !
> 
> Any idea ?
> 
> Dominique
> 



workers.properties & virtual hosts

2000-11-07 Thread Dominique BATARD

Tomcat 3.2b6, Apache 1.3.14, NT 4

I'm running 3 virtual hosts and want to have each one his own JVM

In server.xml :
 ...
 ...
 ...
...
   
  ServerName host1
  
  JkMount /*.jsp ajp-8110
  JkMount /servlet/* ajp-8110

  Idem for host2  ajp-8111 and host3 ... ajp8112

My question is :
1 - the worker's host property must be localhost or the vhost server name ?
 If I use the vhost server name, apache complains and doesn't start

2 - I don't see any trace of ajp-8110, ajp-8111, ajp-8112 in
mod_jk.conf-auto

3 - In NT task manager, I see only 1 JVM working

4 - In jvm.stderr, I see the ContextManager: Adding context for my vhosts
thePoolTcpConnector : Starting of  my Ajp12ConnectionHandler for my 4
ports,
but after stopping tomcat, I don't seeany stopping of the 4 ports, and I
don't see the ContextManager: Removing context of the third vhost (host3).

5 - In workers.properties :
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=ajp12, ajp13
  The doc says the load balanced workers must NOT appear in the
worker.list , but they do appear here !

Any idea ?

Dominique