I have a installation of Apache/Tomcat which is working...sort of.

I have everything configured according to the snippets I will post
below. Here is the strangeness: I initially configured Tomcat as
standalone and was able to pull up the servlet app perfectly well.
Everything performed as expected. Now when I call the URL mapped to
Tomcat, I get a blank, well-formed HTML page! That is
'<HTML><BODY></BODY></HTML>'.

My pertinent configs are below. I setup the workers.properties as
loadbalanced because I could only find a complete config in this form.

----------First, My httpd.conf stuff--------------

# Mod_jk configuration
LoadModule    jk_module  libexec/mod_jk.so
AddModule     mod_jk.c
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile     /usr/local/apache/logs/mod_jk.log
JkLogLevel    info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /servlets/* loadbalancer
JkMount /*.jsp loadbalancer

----------Next,my workers.properties----------

# Using Single Tomcat Instance using AJPV13
#
#workers.tomcat_home=/usr/local/tomcat
#workers.java_home=/usr/local/jdk
ps=/
worker.list=tomcat1, loadbalancer

# Definition for Ajp13 worker (Ajp12 left to readers imagination)
#
worker.tomcat1.port=8009
worker.tomcat1.host=remotehost.wellinx.com
worker.tomcat1.type=ajp13

# Specifies the load balance factor when used with a load balanced
# worker
#
# Note:
# -----> lbfactor must be > 0
# -----> The lower the lbfactor the less work done by worker
worker.tomcat1.lbfactor=100

# ------------------------
# Load Balancer worker
# ------------------------

#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#  ----> If a worker dies, the load balancer will check its state
#        once in a while. Until then all work is redirected to peer
#        worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1

#
# END workers.properties
#

----------Finally, my server.xml stuff----------

<!-- Define an AJP 1.3 Connector on port 8009 -->

    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="10" maxProcessors="75"
               acceptCount="10" debug="0"/>

<Context path="/servlets"
                 docBase="/usr/local/tomcat/webapps/servlets"
                 debug="0"
                 reloadable="false">
           <Logger className="org.apache.catalina.logger.FileLogger"
                   prefix="wellinx-" suffix = ".log"
                   timestamp="true"/>

 </Context>


Any ideas why I get a blank page? The logs show that the connection is
being made from the apache server to the java server through port 8009.
Debugging showed that the request was received and finished by Tomcat,
but the response was the blank page.

Thanks!

Ben Ricker
Web Security System Administrator
Wellinx.com



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

Reply via email to