----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Running JServ 1.1b3, Apache 1.3.9, Blackdown 1.2 JVM on Redhat 6.0:
We are trying to get the load balancing feature up and running, and
repeatedly run into the "virtual host not found or not running" error. I
think I have tracked it to the fact that all the machine's jserv processes
will only accept connections from "localhost" and not from anywhere else,
even though the allowedHosts is set correctly. The problem seems that be
at the ServerSocket level, and is as follows:
My machine name is "lreed". When I have "bindaddress: localhost" set in my
jserv.properties file, I am able to "telnet localhost 8007", but not able
to "telnet lreed 8007" (connection refused).
When I have "bindaddress: lreed", the opposite occurs: I am able to telnet
to lreed but not to localhost.
This is problematic, because we want to be able to run JServ on multiple
machines with the same configuration file and use load balancing, but it
seems that unless we have the machine's hostname (and not "localhost" or
"127.0.0.1") in the jserv.properties file, other machines will not be able
to connect to the JServ process running on any given machine. Is this
known behaviour, or specific to Blackdown's 1.2 JVM (I'm not sure if this
is intended behaviour for the ServerSocket class or not)?
I've worked around the problem by quickly hacking
/org/apache/java/net/AuthenticatedServerSocket.java and changing line 124
from:
super(port, maxConnections, ia);
to:
super(port, maxConnections, null);
but an official solution would be nicer.
------------------------------------------------------
Marc Prud'hommeaux | http://www.techtrader.com
Software Engineer | [EMAIL PROTECTED]
TechTrader, Inc. | phone: 202-872-8550
--
--------------------------------------------------------------
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]