tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Webb Stacy" <w...@stacynetwork.com>
Subject Help with Apache 1.3/Tomcat 4.1.18/JK?
Date Thu, 06 Feb 2003 05:44:52 GMT
Hello,

I'm trying to integrate Apache and Tomcat and am having a devil of a time.
It's probably something simple, but I've read the documentation and several
"how-to" guides and searched the archives but didn't find anything that
helped.

The particulars are below.  Apologies if this is obvious, I'm a newbie to
Tomcat.

Thanks for any help,

    --Webb Stacy

MY SETUP:

Basics - all are working
  Red Hat Linux 7.1 on a Virtuozzo Virtual Private Server on x86
architecture
  Apache 1.3.26 - working
  Sun JDK 1.4.1_01 - working
  Tomcat 4.1.18 - installed from rpm - working on port 8080

Enviornment variables:
  JAVA_HOME is /usr/java/j2sdk1.4.1_01
  CATALINA_HOME is /var/tomcat4
  JASPER_HOME is /var/tomcat4
  CATALINA_TEMPDIR is /var/tomcat4/temp

JK stuff - not working
  mod_jk-api13-1.2.2-1 - installed from rpm
    mod_jk.so in /usr/lib/apache

  httpd.conf - no changes made, these lines were already at the end of the
file
    (It appears that HAVE_JK is defined when Apache is started,
      though I don't understand the mechanism.)
    <IfDefine HAVE_JK>
    LoadModule jk_module modules/mod_jk.so
    AddModule  mod_jk.c
    Include /etc/httpd/conf/mod_jk.conf
    </IfDefine>

  workers.properties (in /etc/httpd/conf)
    workers.tomcat_home=/var/tomcat4
    workers.java_home=/usr/java/j2sdk1.4.1_01
    worker.list=ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13
    worker.ajp13.lbfactor=1
    worker.loadbalancer.type=lb
    worker.loadbalancer.balanced_workers=ajp13

  server.xml changes
    after <Server port="8005" ... > line
     <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
       modJk="/usr/lib/apache/mod_jk.so" jkDebug="info"
       workersConfig="/etc/httpd/conf/workers.properties" />

    Coyote/JK2 AJP 1.3 Connector on port 8009 commented out

    Vanilla AJP 1.3 Conector on port 8009 uncommented:
      <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
        port="8009" minProcessors="5" maxProcessors="75"
        acceptCount="10" debug="0"/>

    after <Host name="localhost" ... > line
      <Listener className="org.apache.ajp.Tomcat4.config.ApacheConfig"
        append="true" forwardAll="false" modJk="/usr/lib/apache/mod_jk.so"
/>

    relevant lines from mod_jk.conf
      JkWorkersFile /etc/httpd/conf/workers.properties
      JkLogFile     /var/log/httpd/mod_jk.log
      JkLogLevel info
      JkMount /*.jsp ajp13
      JkMount /servlet/* ajp13
      ..and a bunch of aliases, mounts, and protection of WEB-INF
directories...

  To reconfigure,
      Apache and Tomcat were stopped,
      then Tomcat was restarted,
      then Apache was restarted after 30 sec. wait

THE RESULTS:
    Apache serves /index.html successfuly

    Tomcat serves mydomain.com:8080/index.jsp successfully

    mydomain.com/index.jsp and /servlet/ get "page contains no data"

    mydomain.com/examples/jsp and mydomain.com/examples/jsp/index.html get
403 permission denied

    no output to mod_jk.log

    the end of catalina.out shows
      Feb 5, 2003 8:53:28 PM org.apache.commons.digester.Digester
startElement
      SEVERE: Begin event threw exception
      Catalina.start: java.lang.ClassNotFoundException:
org.apache.ajp.Tomcat4.config.ApacheConfig
      ...and a stack trace...
      (though a jar tvf of $CATALINA_HOME/server/lib/tomcat-jk.jar shows
it's there)

   the end of the Apache error log shows
      [Wed Feb  5 20:54:31 2003] [warn] module mod_jk.c is already added,
skipping
      [Wed Feb  5 20:54:32 2003] [notice] Apache/1.3.26 (Unix)
(Red-Hat/Linux) mod_jk/1.2.2 mod_ssl/2.8.9 OpenSSL/0.9.6 PHP/4.1.1
mod_perl/1.24_01 FrontPage/5.0.2.2510 configured -- resuming normal
operations
      [Wed Feb  5 20:54:32 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
      [Wed Feb  5 20:54:32 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
      [Wed Feb  5 20:55:13 2003] [notice] child pid 1978 exit signal
Segmentation fault (11)
      ...and 9 other segfault messages...



---------------------------------------------------------------------
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