I'll continue to top-post, since you do.
(Note that this is not the most logical way to have a conversation; it is easier when
questions and responses follow a logical top-down order).
Summary :
- your Apache httpd configuration looks OK
- your Tomcat AJP Connector looks OK
- you can connect with a browser to the HTTP port of Tomcat, and with the URI "/", you get
the Tomcat homepage
- you can ping the Tomcat server from the Apache httpd server
- from the Apache httpd server, you can telnet to port 8009 of the Tomcat server
- if you remove the "JkMount" directive from the Apache httpd configuration, you get the
expected Apache httpd page
- if you insert the JkMount directive, you get a message saying that Tomcat
cannot be reached
...
Obviously, something is wrong in the above list. If, from the command-line on the Apache
httpd host, you can establish a TCP connection to the Tomcat host on port 8009 using
telnet, then there is no immediate reason why mod_jk should not be able to do the same.
Unless mod_jk is trying to connect to some other host than the one running
Tomcat.
The thing which causes a bit of doubt there, is that in your workers.properties file, you
use the hostname "server2.ourlab.com" for Tomcat, while in all your other checks and
messages, you use the hostname "tomcatappserver".
Is this just a matter of typing and censoring, or are these really two
different names ?
Or are they really two different hosts ?
That they /should/ be the same host, does not necessarily mean that they /are/.
Can you confirm that using the /same/ hostname in your workers.properties file and in your
ping and telnet tests, everything goes as you have described it so far ?
Note that you can also use the JkLogFile and JkLogLevel directives, to get more explicit
error messages from mod_jk. But seen the above, it would probably just tell you that it
cannot connect to "server2".
Troy-McKoy, Vickie wrote:
Yes. From the apache host, I pinged and telneted the tomcat host.
# ping tomcatappserver
PING tomcatappserver (nn.n.nn.nnn) 56(84) bytes of data.
64 bytes from tomcatappserver (nn.n.nn.nnn): icmp_seq=1 ttl=64 time=0.140 ms
# telnet tomcatappserver 8009
Trying nn.n.nn.nnn...
Connected to tomcatappserver (nn.n.nn.nnn).
Escape character is '^]'.
Connection closed by foreign host.
When I attempt to connect to the tomcatappserver via the apachewebserver, in firefox browser I get:
"Unable to connect". "Firefox can't establish a connection to the serer at
tomcatappserver:8009."
I just noticed if I put in the browser, the tomcatappserver url with the default port, I get the Apache Tomcat/7.0.14 page. But, if I put in the apachewebserver url with the default port, I get this message:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
--------------------------------------------------------------------------------
Apache/2.0.64 (Unix) mod_jk/1.2.32 Server at xxxxx Port 80
When I remove the JkMount and JkWorkersFile from httpd.conf, I get the default
Apache web server page.
-----Original Message-----
From: Tim Watts [mailto:t...@cliftonfarm.org]
Sent: Monday, December 19, 2011 2:20 PM
To: Tomcat Users List
Subject: RE: AJP 1.3 Connector
On Mon, 2011-12-19 at 13:42 -0500, Troy-McKoy, Vickie wrote:
Thanks for your response.
When I ping server2, I get valid responses coming back. When I telnet
to server2 on port 8009, I am also able to connect.
Did you do the telnet test from a shell on the apache host? Did you use the
exact name *as configured* (i.e. server2.ourlab.com)?
What's the exact error message you're getting and which component (browser,
apache) is reporting it?
-----Original Message-----
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Saturday, December 17, 2011 7:14 AM
To: Tomcat Users List
Subject: Re: AJP 1.3 Connector
Vickie Troy-McKoy wrote:
Hi,
I'm in need of a little help. I'm trying to get my tomcat and
apache web server instances communicating; they are running on two
different physical servers. When I attempt a test of the application
url, it basically says that a connection cannot be established. I am
running the following:
RHEL Release 5.6 (x86_64)
Apache Tomcat 7.0.14
Apache/2.0.64
mod_jk/1.2.32
On the 1st physical server, the apache webserver instance resides:
httpd.conf contains the following:
LoadModule jk_module modules/mod_jk.so # JkWorkersFile
conf/workers.properties JkMount /* server2
workers.properties contain the following:
worker.list=server2
worker.server2.port=8009
worker.server2.host=server2.ourlab.com
worker.server2.type=ajp13
worker.server2.lbfactor=1
worker.server2.socket_keepalive=1
On the 2nd physical server, the apache-tomcat instance resides:
server.xml contains the following:
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" enableLookups="false" protocol="AJP/1.3"
redirectPort="8443" />
<Connector port="8443" maxHttpHeaderSize="8192" protocol="HTTP/1.1"
SSLEnabled="true"
[and various other settings]
I am missing something. Can someone please provide help? Thank
you...
Hi.
Your configuration looks fine.
The problem then should be with the network.
Try the following :
From the Apache httpd server (command-line),
1) enter :
ping server2.ourlab.com
If you get regular messages showing that the ping packets are being answered, it's fine.
If you get error messages, then you have a basic network problem accessing server2.ourlab.com from your Apache host.
(faked) example of a "good" answer :
PING server2.ourlab.com (192.168.20.1) 56(84) bytes of data.
64 bytes from server2.ourlab.com (192.168.20.1): icmp_seq=1 ttl=64
time=0.326 ms
64 bytes from server2.ourlab.com (192.168.20.1): icmp_seq=2 ttl=64
time=0.158 ms
64 bytes from server2.ourlab.com (192.168.20.1): icmp_seq=3 ttl=64
time=0.156 ms
Example of a bad answer :
- unknown host
- network is not reachable
etc..
2) If the above is fine, then :
enter :
telnet server2.ourlab.com 8009
It should at least connect (and may drop the connection right away),
but the point is : is it connecting ? If it is, you will get an answer
similar to this :
Trying 192.168.20.1...
Connected to colin-int.
Escape character is '^]'.
xxx
Connection closed by foreign host.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
-----------------------------------------
Email messages cannot be guaranteed to be secure or error-free as
transmitted information can be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The Centers
for Medicare & Medicaid Services therefore does not accept liability
for any error or omissions in the contents of this message, which
arise as a result of email transmission.
CONFIDENTIALITY NOTICE: This communication, including any attachments,
may contain confidential information and is intended only for the
individual or entity to which it is addressed. Any review,
dissemination, or copying of this communication by anyone other than
the intended recipient is strictly prohibited. If you are not the
intended recipient, please contact the sender by reply email and
delete and destroy all copies of the original message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org