1. You probably want to clean out your workers.properties file. The log
below indicates it has a lot of old depricated stuff in it.
Mine is just a very bare bones one:
worker.list=tcinstance1
worker.tcinstance1.port=8009
worker.tcinstance1.type=ajp13
2. Make sure an ajp13 port is alive at port 8009 on your tomcat
instance. The bottom of your log snippet indicates it isn't. Just edit
tomcat's server.xml file, look for a <Connector .... /> element
containing port=8009 and make sure it doesn't have xml comments ( <!--
--> ) surrounding it.
--David
Andy Smith wrote:
Hi list,
I'm new to tomcat and am trying to get apache to talk via mod_jk. I am using
httpd 2.2.8 compiled from source
mod_jk 1.2.26 from source and tomcat 5.5.23 from Alfresco 2.9B community.
So far I have created a workers.properties based on the example file included
with tomcat 5.5 source (just corrected
the paths and set for UNIX) and added the following to my apache httpd.conf:
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Declare the module for <IfModule directive> (remove this line on Apache 2.0.x)
#AddModule mod_jk.c
# Where to find workers.properties
JkWorkersFile /opt/alfresco/tomcat/conf/workers.properties
# Where to put jk shared memory
JkShmFile /var/log/httpd/mod_jk.shm
# Where to put jk logs
JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /* ajp13
# Send servlet for context /examples to worker named worker1
#JkMount /alfresco/servlet/* worker1
# Send JSPs for context /examples to worker named worker1
#JkMount /alfresco/*.jsp worker1
#JkOptions +ForwardURICompatUnparsed
When I try and connect via a browser to http://hostname/alfresco I get the
error:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance
downtime or capacity problems. Please try again later.
And in the mod_jk logs I see:
[Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.class_path' is deprecated - please check the documentation
for the correct replacement.
[Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.cmd_line' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.jvm_lib' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.stdout' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5617:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.stderr' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5617:3086026976] [info] init_jk::mod_jk.c (2825):
mod_jk/1.2.26 initialized
[Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.class_path' is deprecated - please check the documentation
for the correct replacement.
[Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.cmd_line' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.jvm_lib' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.stdout' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5619:3086026976] [warn]
jk_map_validate_property::jk_map.c (410): The attribute
'worker.inprocess.stderr' is deprecated - please check the documentation for
the correct replacement.
[Wed Mar 26 14:33:01 2008] [5619:3086026976] [info] init_jk::mod_jk.c (2825):
mod_jk/1.2.26 initialized
[Wed Mar 26 14:33:07 2008] [5620:3086026976] [info]
jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed (errno=111)
[Wed Mar 26 14:33:07 2008] [5620:3086026976] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to
(127.0.0.1:8009) (errno=111)
[Wed Mar 26 14:33:07 2008] [5620:3086026976] [error]
ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend failed.
Tomcat is probably not started or is listening on the wrong port (errno=111)
[Wed Mar 26 14:33:07 2008] [5620:3086026976] [info]
ajp_service::jk_ajp_common.c (2186): (ajp13) sending request to tomcat failed
(recoverable), because of error during request sending (attempt=1)
One thing Im not getting my head round is which configuration files tomcat
looks in at startup and whether I should be
seeing a java process listening on 8009 (i assume yes). How can I troubleshoot
this further? I dont see any errors from
tomcat regarding not being able to start a process listening on 8009, where is
this normally done?
thanks for any help! Andy.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]