tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle ...@attitia.com>
Subject "Wrong Message Format"
Date Wed, 24 Aug 2005 05:51:52 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message