When Googling, there a a number of references to Ajp14 (in conjunction with Ajp13), but no actual documentation on it. Not even on Jakarta.org.

I ask in relation to my problem listed in the email below;

However, one the very few references I _did_ find to ajp14 was in a CVS archive of "jk_ajp_common.c" (here: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg71655.html) which as you can see from my error msgs below is the very file which appears to be throwing up the errors I'm getting. Certainly the errors I'm seeing are in that source file.

I also found a couple of sites attempting to show how to integrate Tomcat 4.1.x with Apache wherein they were adding workers of type=ajp14 in their workers.properties. But again, I haven't seen it documented anywhere. And certainly no mention of a <connector /> being configured in server.xml for Tomcat.

Finally I stumbled onto the Tomcat developers' list wherein they have a long discussion on AJP14 being an evolution of AJP13, but again, nothing conclusive.

Do I need to configure something to do with AJP14 in Tomcat 4.1.30 in order to get it integrated with Apache?

If so where/what can I find it? Do I need to compile something?

I could really use the assistance of those in the know pls.

K

=============================================================

Kyle wrote:
Hi people,
I'm a bit stumped as to what to track/trace in this instance. Can
someone point me in the right direction please?

Apache 2.0.54
Tomcat 5.5.9 & 4.1.30
mod_jk 1.2.14

I am trying to integrate Apache with the 2 different versions of Tomcat
into 2 different Apache <VirtualHosts>. I am as far as;

Apache is integrated with TC_5.5.9 (on :8080) and works.
mod_jk connector listening on :8009

TC_4.1.30 installed and working stand-alone on :9080 mod_jk connector listening on :9009

Each Tomcat instance has it's own user and startup script in
/etc/init.d, creating its own CATALINA_HOME, etc. envvar's.
catalina.out in each instance tells me the server is started without
errors. Workers.properties looks like; ----------------------------
worker.list=ajp13Wkr, cdnWkr

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=<host1>.<Apache-VHost1>.com
worker.ajp13Wkr.type=ajp13

worker.cdnWkr.port=9009
worker.cdnWkr.host=<host2>.<Apache-VHost2>.com
worker.cdnWkr.type=ajp13
-----------------------------

httpd.conf
----------
JkWorkersFile /opt/httpd/conf/workers.properties
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkLogStampFormat "[%a %d %b %Y %H:%M:%S] "
JkRequestLogFormat "%w %V %T"
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info

And an "Include" directive for the JkMount mappings in each
<VirtualHost> tag.
----------------


Yet when I try to access a jsp on host2.apache-VHost2.com, I get the
errors below and I really have no idea where to start looking.
I suspect it's trying to look on 8009 for the worker as opposed to 9009,
but can't confirm it.
Can you point me in the right direction please?


mod_jk.log offers up this;
====================================================================

[Wed 24 Aug 2005 13:33:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:33:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=0
[Wed 24 Aug 2005 13:33:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:34:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=1
[Wed 24 Aug 2005 13:34:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (981): wrong message
format 0x4854 from 192.168.0.1:9009
[Wed 24 Aug 2005 13:35:58] [error] ajp_get_reply::jk_ajp_common.c
(1503): Tomcat is down or refused connection. No response has been sent
to the client (yet)
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1721):
Receiving from tomcat failed, recoverable operation attempt=2
[Wed 24 Aug 2005 13:35:58] [info]  ajp_service::jk_ajp_common.c (1749):
Sending request to tomcat failed,  recoverable operation attempt=3
[Wed 24 Aug 2005 13:35:58] [error] ajp_service::jk_ajp_common.c (1758):
Error connecting to tomcat. Tomcat is probably not started or is
listening on the wrong port. worker=cdnWkr failed
[Wed 24 Aug 2005 13:35:58] [info]  jk_handler::mod_jk.c (1971): Service
error=0 for worker=cdnWkr


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

Reply via email to