-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Hello !

I'm trying to set up ApapcheJServ with load-balancing. After reading the
HowTo and FAQ on this subject, I'm still not able to get it right. What I
want is to run one Apache with two ApacheJServ on the same machine.

I'm running:
Solaris 2.5.1
Apache 1.3.6
ApacheJServ 1.0 , JDK 1.1.6

The jserv.conf:
<IfModule mod_jserv.c>
ApJServLogFile /usr/local/apache/logs/espen/mod_jserv.log
ApJServDefaultProtocol ajpv11
ApJServDefaultPort 18171
ApJServProperties /usr/local/apache/conf/espen/jserv.properties
ApJServManual on
ApJServSecretKey DISABLED

ApJServMount /server-java balance://set1/zone1

ApJServBalance set1 jserv1
ApJServBalance set1 jserv2

ApJServHost jserv1 ajpv11://<ip>:62000
ApJServHost jserv2 ajpv11://<ip>:63000

ApJServRoute JS1 jserv1
ApJServRoute JS2 jserv2

ApJServShmFile /usr/local/apache/logs/espen/jserv_shm
</IfModule>

and I've set up ApacheJServ to listen on port 18171 in the jserv.properties
file.

The log-file gives me the following message when I'm starting up and trying
to run a servlet:
[09/09/1999 08:08:49:965] (INFO) jserv_watchdog:(7819) watchdog_terminate()
[09/09/1999 08:08:50:048] (INFO) jserv_watchdog:(7817) watchdog_cleanup()
[09/09/1999 08:08:50:049] (INFO) Apache Module was cleaned-up
[09/09/1999 08:08:52:214] (INFO) setting defaults for balance set1-jserv1
(weight 1)
[09/09/1999 08:08:52:215] (INFO) setting defaults for balance set1-jserv2
(weight 1)
[09/09/1999 08:08:52:215] (INFO) setting defaults for host jserv1-JS1
[09/09/1999 08:08:52:215] (INFO) setting defaults for host jserv2-JS2
[09/09/1999 08:08:52:215] (INFO) setting up balance for mount /server-java/,
zone zone1
[09/09/1999 08:08:52:216] (INFO) balancing host jserv1-JS1
[09/09/1999 08:08:52:216] (INFO) balancing host jserv2-JS2
[09/09/1999 08:08:52:237] (INFO) jserv_watchdog:(7852) watchdog_cleanup()
[09/09/1999 08:08:52:238] (INFO) jserv_watchdog:(7851) watchdog_terminate()
[09/09/1999 08:08:52:241] (INFO) Apache Module was cleaned-up
[09/09/1999 08:08:52:284] (INFO) setting defaults for balance set1-jserv1
(weight 1)
[09/09/1999 08:08:52:285] (INFO) setting defaults for balance set1-jserv2
(weight 1)
[09/09/1999 08:08:52:285] (INFO) setting defaults for host jserv1-JS1
[09/09/1999 08:08:52:285] (INFO) setting defaults for host jserv2-JS2
[09/09/1999 08:08:52:286] (INFO) setting up balance for mount /server-java/,
zone zone1
[09/09/1999 08:08:52:290] (INFO) balancing host jserv1-JS1
[09/09/1999 08:08:52:290] (INFO) balancing host jserv2-JS2
[09/09/1999 08:09:28:976] (INFO) balance: virtual host not found or not
running
[09/09/1999 08:09:28:979] (ERROR) an error returned handling request via
protocol "balance"

Any help on this matter would be greatly appreciated!

Jan Espen Hansen
Consultant, Cap Gemini Norway


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to