Re: workers2.properties syntax

2004-02-06 Thread Alvaro Seixas
Hei Dean,
Thanks for replying.

First off I'd like to configure properly Tomcat JNI. Still doing tests but
'till now with no success.
As I told before, I get this error when start Tomcat:
06/02/2004 14:27:07 org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

Apache's error.log:
[Fri Feb 06 14:27:59 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Feb 06 14:28:00 2004] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Feb 06 14:28:00 2004] [notice] vm.detach() ok
[Fri Feb 06 14:28:00 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Fri Feb 06 14:28:00 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Fri Feb 06 14:28:00 2004] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Feb 06 14:28:00 2004] [notice] vm.detach() ok
[Fri Feb 06 14:28:00 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown


And second, I'd like to configure load balance.
My idea is to call http://test.serv.com/mywebapp and this server having 2
Tomcat instances:
http://test.serv.com:8070/mywebapp
http://test.serv.com:8080/mywebapp

Thanks a lot,
Alvaro

- Original Message -
From: "Dean Searle" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 04, 2004 5:01 PM
Subject: RE: workers2.properties syntax


What aspects are you wanting to change and I'll see if I can help explain
them. I'm somewhat new to this also, but have spent almost a year decipering
and figuring things out.

Dean


-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Tue 2/3/2004 3:15 PM
To: Tomcat Users List
Subject: workers2.properties syntax

Hello,

I'd like to know if someone knows where I can find any document describing
the syntax for workers2.properties different from the one that comes with
Tomcat 5.
Cause the one that I'm using I copied from this list (and it's working) and
there's some aspects I want to change that I have no idea how to do it.

Thanks,
Alvaro










> -
> 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: workers2.properties syntax

2004-02-05 Thread Allistair Crossley
I'd like to know how you use workers2.properties to load balance if possible. My 
original post is below...

The following is my workers2.properties file.

[shm:]
info=Shared memory file. Required for multiprocess servers
file=D:\Tomcat 5.0\work\jk2.shm
size=100

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009


[uri:/*.do]
info=iQ2
context=/

[uri:/*.jsp]
info=iQ2
context=/

1) Where on earth is the JK2 syntax and options that one puts in this 
workers2.properties ... the JK2 docs on the jakarta site are a) under Tomcat 4.1 and 
b) use a different dot-notated syntax to this above

2) Am I right in thinking that I can add additional tomcat instances to this file, e.g.

[channel.socket:localhost:8010]
[channel.socket:localhost:8011]
[channel.socket:localhost:8012]

And give each a load balance factor?? If so, where can I get hold of the syntax for 
this?

3) If (2) then is this a fair enough way to handle load balancing? Can I create 
different mappings for each? E.g

[channel.socket:localhost:8012]
[uri:/search.do]
info=Search Function
context=/

4) If I am to setup a set of Tomcat instances for load balancing, then can I configure 
them ALL to be Windows Services ... I tried this before where I had 5.0.16 as a 
Windows Service, then installed 5.0.18 as a service and despite changing the values it 
overwrote all my 5.0.16 service settings. I would like to have multiple Tomcat 
instances as Windows Services so they come up after a reboot. I don't want to really 
have to call all their startup.bat scripts.

Thanks! ADC





 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: workers2.properties syntax

2004-02-04 Thread Dean Searle
What aspects are you wanting to change and I'll see if I can help explain them. I'm 
somewhat new to this also, but have spent almost a year decipering and figuring things 
out.

Dean


-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Tue 2/3/2004 3:15 PM
To: Tomcat Users List
Subject: workers2.properties syntax
 
Hello,

I'd like to know if someone knows where I can find any document describing the syntax 
for workers2.properties different from the one that comes with Tomcat 5.
Cause the one that I'm using I copied from this list (and it's working) and there's 
some aspects I want to change that I have no idea how to do it.

Thanks,
Alvaro



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