You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrew Sanderson <am...@sdsc.edu> on 2002/12/13 20:06:07 UTC

mod_jk using CATALINA_HOME instead of CATALINA_BASE

I have Tomcat 4.1.12 setup using multiple instances, each with their own
CATALINA_BASE.  I am trying to setup the mod_jk connector to Apache
2.0.39, unfortunately it seems to be writing the auto and jk directories to
CATALINA_HOME which is shared amongst all of my instances.  I would think
it would write to CATALINA_BASE like the work and temp directories do
because it is specific to one instance, not all.  Is there something I am
missing in my configuration or what is going on?  As Tomcat won't
even start right I am not including the Apache side of the
configuration as it is not relevant.  Tomcat config follows...

Thanks!  Andy

Here are the errors as it tries to write to the wrong place:

java.lang.RuntimeException: Unable to create path to config file
:$CATALINA_HOME/conf/auto/mod_jk.conf

java.lang.RuntimeException: Unable to create path to config file
:$CATALINA_HOME/conf/jk/workers.properties

java.lang.RuntimeException: Unable to create path to config file
:$CATALINA_HOME/logs/mod_jk.log


server.xml
--------------------
<Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
       modJk="/#path_to_apache#/modules/mod_jk.so"/>

*snip*
  <!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

   <!-- Define an AJP 1.3 Connector on port 8009 -->
   <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
      port="8019" minProcessors="5" maxProcessors="75"
      acceptCount="10" debug="0"/>

*snip*

   <!-- Define the top level container in our container hierarchy -->
   <Engine name="Standalone" defaultHost="localhost" debug="0">

    <!-- Define the default virtual host -->
    <Host name="#hostname#" debug="0" appBase="webapps" unpackWARs="true">

     <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
        append="true" forwardAll="false"
        modJk="#path_to_apache#/modules/mod_jk.so" />

*snip*






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>