If you do a netstat -ln (cygwin) do you see two network sockets
listening on port 80?
166.70.163.138:80
166.70.163.140:80
If not, the problem is at a lower level than tomcat.
Steve
Barnett, Brian W. wrote:
I have two <Service> elements defined like this in my server.xml file, each
one listening to a different IP address and serving requests for different
web sites. (Using 5.0.28)
<Service name="MyService1">
<Connector port="80"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true"
address="166.70.163.138" />
<Connector port="443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
address="166.70.163.138" />
<Engine name="Catalina1" defaultHost="host1" debug="0">
<Host name="host1" debug="0" appBase="/webapps/host1"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
<Service name="MyService2">
<Connector port="80"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true"
address="166.70.163.140" />
<Connector port="443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
address="166.70.163.140" />
<Engine name="Catalina2" defaultHost="host2" debug="0">
<Host name="host2" debug="0" appBase="/webapps/host2"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
My Tomcat folder structure looks like this:
conf
--Catalina1
----host1
------[various .xml files (context files)]
--Catalina2
----host2
------[various .xml files (context files)]
webapps
--host1
----[various webapps]
--host2
----[various webapps]
I can browse successfully to all the web apps that are deployed in
webapps/host1 but when I browse to host 2 I get the following error:
(Error message from Firefox when browsing to http://166.70.163.140)
"The connection was refused when attempting to contact 166.70.163.140."
In the stdout.log file, mention is made of the context files in
/Catalina1/host1 but no mention is made of context files in
/Catalina2/host2.
Sep 14, 2005 10:53:04 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache
Software Foundation\Tomcat 5.0\conf\Catalina1\host1\admin.xml
Sep 14, 2005 10:53:12 AM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 14, 2005 10:53:12 AM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 14, 2005 10:53:13 AM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Sep 14, 2005 10:53:18 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache
Software Foundation\Tomcat 5.0\conf\Catalina1\host1\balancer.xml
Sep 14, 2005 10:53:19 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache
Software Foundation\Tomcat 5.0\conf\Catalina1\host1\gapay.xml
Sep 14, 2005 10:53:23 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache
Software Foundation\Tomcat 5.0\conf\Catalina1\host1\manager.xml
Sep 14, 2005 10:53:23 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache
Software Foundation\Tomcat 5.0\conf\Catalina1\host1\webshare.xml
I wondered if 166.70.163.140 was accessible at all, so I just tried having
one <Service> defined without specifying an IP address. Both IPs were
accessible in this case, so I assumed 166.70.163.140 was configured
correctly.
I tried it with and without Windows XP firewall enabled and got same
results.
Can someone shed some light on what could be the problem(s)?
Thanks,
Brian Barnett
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************
---------------------------------------------------------------------
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]