download Tomcat 7 from official site.
preinstalled and configured apache httpd server on Mac.
you have to download and installed mod_jk apache connector.
A mix of the following two articles enable me to use Apache webserver to server usual contents and tomcat to serve the jsp or servlet.
http://macdevcenter.com/pub/a/mac/2002/08/20/tomcat_integration.html?page=1
mod_jk installation instrcution from the this link
http://www.bartbusschots.ie/blog/?p=1347
though the first link can be used for the entire working, however the instructions for compiling and installing mod_jk are complex.
After doing all this, I got the following error message in mod_jk.log
[Thu Jun 09 13:40:27 2011] [53894:140735072558240] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1216): (ajp13) can't receive the response header message from tomcat, tomcat (127.0.0.1:8080) has forced a connection close for socket 20
[Thu Jun 09 13:40:27 2011] [53894:140735072558240] [error] ajp_get_reply::jk_ajp_common.c (2058): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Thu Jun 09 13:40:27 2011] [53894:140735072558240] [info] ajp_service::jk_ajp_common.c (2543): (ajp13) sending request to tomcat failed (recoverable), (attempt=2)
[Thu Jun 09 13:40:27 2011] [53894:140735072558240] [error] ajp_service::jk_ajp_common.c (2562): (ajp13) connecting to tomcat failed.
[Thu Jun 09 13:40:27 2011] [53894:140735072558240] [info] jk_handler::mod_jk.c (2627): Service error=0 for worker=ajp13
After googling and hit a try, I came to know that the port mentioned in worker.properties and AJP connector settings in server.xml should be same. After chaning the port in worker.properties to 8009 (default in AJP/1.3 connector), things were working like charm.
No comments:
Post a Comment