--


I was unable to solved this problems after reading through the FAQ 
and tips.  

  I am using Apache 1.3.6, JServ Final 1.0, jdk1.1.6 and JSDK2.0 
(y2k). The platform is Solaris 2.5.1. 

I'm trying to load-balancing using two/more JServs  (running on the 
same host as the apache web server). 

  My configuration files are as follows: 
  ApJServMount /example balance://set1/example 
  ApJServMount /WATER/servlets balance://set1/WATER 

  ApJServBalance set1 PII450-1 
  ApJServBalance set1 PII450-2 

  # same platform, 2 JServs 
  ApJServHost PII450-1 ajpv11://tango:8807 
  ApJServHost PII450-2 ajpv11://tango:8808 

  ApJServRoute sun1 PII450-1 
  ApJServRoute sun2 PII450-2 


  I always encountered the following problems: 
  *********** jserv.logs ************* 
  [30/06/1999 11:37:47:343] (EMERGENCY) ajp11: cannot scan 
servlet headers 
  [30/06/1999 11:37:47:344] (ERROR) an error returned handling 
request via  protocol "ajpv11" 
  [30/06/1999 11:37:47:344] (INFO) balance: virtual host not found 
or not running 
  [30/06/1999 11:37:47:344] (ERROR) an error returned handling 
request via protocol "balance  " 

  *********** error.log ******** 
  [Wed Jun 30 11:37:47 1999] [error] [client 10.3.11.18] Premature 
end of script 
  headers: /example/Hello 
  [Wed Jun 30 11:37:47 1999] [error] [client 10.3.11.18] Premature 
end of script 
  headers: /example/Hello 


  I have no problems running in automatic mode (non-load 
balancing) 

 Does anyone have a completed set of config files for load-
balancing of 1 host and n Jservs, running on the same host?

  Thank you for your help. 

  Regards, 
  Yoke 


  PS: 
  I have cut out the httpd.conf, jserv.conf and jserv.properties files 
as below: 




  ############# httpd.conf ############### 

  #######################################
  ## httpd.conf -- Apache HTTP server configuration file # 
  ########################################
 
  ...... the following is added to httpd.conf 
  # Begin jserv directives 
  # ************************************************************** 
  # include jserv conf file 
  <IfModule mod_jserv.c> 
  Include /usr3/local/apache136/jconf/jserv.conf 
  # Include /usr3/local/src/ApacheJServ-1.0/example/jserv.conf 
  </IfModule> 




  ######### jserv.conf #################### 

  ################################
  # Apache JServ Configuration File 
  # 
  #################################

  LoadModule jserv_module libexec/mod_jserv.so 

  ApJServManual on 
  ApJServProperties /usr3/local/apache136/jconf/jserv.properties 
  ApJServLogFile /usr3/local/apache136/logs/jserv.log  
  ApJServDefaultProtocol ajpv11 
  ApJServDefaultPort 8807 

  # Passes parameter and value to specified protocol. 
  ApJServSecretKey DISABLED 

  ApJServMount /example balance://set1/example 
  ApJServMount /WATER/servlets balance://set1/WATER 

  ApJServBalance set1 PII450-1 
  ApJServBalance set1 PII450-2 

  # same pc, 2 JServs 
  ApJServHost PII450-1 ajpv11://tango:8807 
  ApJServHost PII450-2 ajpv11://tango:8808 

  ApJServRoute sun1 PII450-1 
  ApJServRoute sun2 PII450-2 

  ApJServMountCopy on 

  # Executes a servlet passing filename with proper extension in 
PATH_TRANSLATED 
  <Location /jserv/> 
  SetHandler jserv-status 

  order deny,allow 
  deny from all 
  allow from all 
  </Location> 

  


  ########## jserv.properties ############ 

  ################################### 
  # Apache JServ Configuration File # 
  ################################### 

  # Execution parameters 
  ####################### 

  wrapper.bin=/usr3/local/java/bin/java 
  wrapper.class=org.apache.jserv.JServ 

  wrapper.path=/database/app/oracle/product/8.0.5/bin 
  wrapper.path=/database/app/oracle/product/8.0.5/lib 

  wrapper.classpath=/usr3/local/jserv1.0/lib/ApacheJServ.jar 
  wrapper.classpath=/usr3/local/JSDK2.0/lib/jsdk.jar 
  
wrapper.classpath=/database/app/oracle/product/8.0.5/jdbc/lib/clas
ses111.zip 
  wrapper.classpath=/usr3/local/java/lib/classes.zip 
  wrapper.classpath=/usr3/web/wClasses/jweb.jar 
  wrapper.classpath=/usr3/web/wClasses/activation.jar 
  wrapper.classpath=/usr3/web/wClasses/mail.jar 
 
wrapper.env=LD_LIBRARY_PATH=/database/app/oracle/product/8. 
0.5/lib:. 
  
wrapper.env=ORACLE_HOME=/database/app/oracle/product/8.0.5 

  # General parameters 
  ###################### 
  port=8807 

  # Servlet Zones parameters 
  ########################### 

  zones=example,WATER 


  example.properties=/usr3/local/src/ApacheJServ-
1.0/example/example.properties 
  
example.properties=/usr3/local/apache136/jconf/example.propertie  
WATER.properties=/usr3/local/apache136/jconf/WATER.properties 

  # Security parameters 
  ##################### 

  security.maxConnections=50 
  security.allowedAddresses=127.0.0.1 
  security.authentication=false 
  security.challengeSize=5 

  # Logging parameters 
  #################### 

  log=false 
  log.file=jserv.log 
  log.timestamp=true 
  log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz] 
  log.channel.servletLog=true 
  log.channel.init=true 
  log.channel.terminate=true 
  log.channel.serviceRequest=true 
  log.channel.authentication=true 
  log.channel.requestData=true 
  log.channel.responseHeaders=true 
  log.channel.signal=true 
  log.channel.exceptionTracing=true 
  log.channel.servletManager=true 




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

Reply via email to