You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by pi...@artic.fr on 2005/06/20 12:09:40 UTC

Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10

Hi,

I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 
on Solaris 10.
I followed docs from tomcat website and the excellent "best practices" 
from Mladen Turk with no more success.

mod_jk says it cannot find a worker for the worker name of httpd.conf and 
return error 500

Apache is compiled with MPM worker with all modules enabled
Here under are log and config files.

I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk.



Thanks for your help
Pierre


Log from mod_jk
=============================================================================================================
[Mon Jun 20 11:55:33 2005] [4832:0027] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
'/favicon.ico' from 1 maps
[Mon Jun 20 11:55:33 2005] [4832:0027] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context 
URI '/*'
[Mon Jun 20 11:55:33 2005] [4832:0027] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
ajp13w -> /*
[Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c 
(1814): Into handler jakarta-servlet worker=ajp13w r->proxyreq=0
[Mon Jun 20 11:55:33 2005] [4832:0027] [debug] 
wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w
[Mon Jun 20 11:55:33 2005] [4832:0027] [info]  jk_handler::mod_jk.c 
(1986): Could not find a worker for worker name=ajp13w
==============================================================================================================






=====================================================================
VH conf in HTTPD.CONF
=====================================================================

NameVirtualHost *:80

<VirtualHost *:80>

   ServerName    sa1.tomcat.fr
   ServerAlias   sa1
   DocumentRoot  /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT

   JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties
   JkLogFile     /usr/local/apache2/logs/jk-sa1.log
   JkAutoAlias   /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT

   JkMount      /* ajp13w

</VirtualHost>
 

=====================================================================
workers.properties
=====================================================================
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=ajp13w
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009k


========================================================================================================
serverl.xml
========================================================================================================

<Server port="8005" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" 
/>
  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener 
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">

    <Connector port="8009" maxProcessors="150"
               enableLookups="false" redirectPort="8443" 
protocol="AJP/1.3" />

    <Engine name="Catalina" defaultHost="sa1.tomcat.fr">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="sa1.tomcat.fr" appBase="webapps/ROOT"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
       <Alias>sa1.tomcat.fr</Alias>
      </Host>

    </Engine>

  </Service>

</Server>



+------------------------------+
  Pierre Lebrun / ARTIC
  tel 02 31 32 45 36
  fax 02 31 62 04 65
+------------------------------+