tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Skyler.Bing...@londen-insurance.com
Subject Tomcat 1.4.24/Apache 1.3.26 integration with mod_jk2
Date Fri, 01 Aug 2003 18:34:57 GMT
I am having a hard time integrating tomcat 1.4.24 with apache 1.3.26 using
the mod_jk2 connector.  Everything appears to be configured correctly and I
can access tomcat examples via the stand-alone service but I get the
following error (it's actually a notice) in apache's error_log when trying
to access a servlet and page cannot be displayed:

[Thu Jul 31 15:57:10 2003] [notice] child pid 21866 exit signal
Segmentation fault (11)

This is the only thing that leads me to believe that something is amiss
(this and the fact that I can't access servlets!).  The following are tails
from log files and the important configuration files.

error_log (apache):
----------------------------
[Thu Jul 31 17:44:45 2003]  ( info) [mod_jk2.c (290)]: mod_jk child init
[Thu Jul 31 17:44:45 2003]  ( info) [mod_jk2.c (298)]: mod_jk.post_config()
init worker env
[Thu Jul 31 17:44:45 2003]  ( info) [mod_jk2.c (208)]: Set serverRoot
/etc/httpd
Create config for main host
[Thu Jul 31 17:44:45 2003]  ( info) [mod_jk2.c (290)]: mod_jk child init
[Thu Jul 31 17:44:45 2003]  ( info) [mod_jk2.c (298)]: mod_jk.post_config()
init worker env
[Thu Jul 31 12:44:46 2003] [notice] Apache/1.3.26 (Unix)  (Red-Hat/Linux)
mod_ssl/2.8.9 OpenSSL/0.9.6 PHP/4.1.1 mod_per
l/1.24_01 mod_jk2/2.0.0 FrontPage/5.0.2.2510 configured -- resuming normal
operations
[Thu Jul 31 12:44:46 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Thu Jul 31 12:44:46 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Thu Jul 31 12:45:13 2003] [notice] child pid 21865 exit signal
Segmentation fault (11) <-- each time I tried to access a servlet, I got
one of these
[Thu Jul 31 15:49:16 2003] [notice] child pid 21870 exit signal
Segmentation fault (11)
[Thu Jul 31 15:57:10 2003] [notice] child pid 21866 exit signal
Segmentation fault (11)


catalina.out:
------------------
Stopping service Tomcat-Standalone
Stopping service Tomcat-Apache
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Starting service Tomcat-Apache
Apache Tomcat/4.1.24
Jul 31, 2003 12:55:16 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8019
Jul 31, 2003 12:55:16 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/159
config=/var/jakarta-tomcat-4.1.24/conf/jk2.properties

workers2.properties:
------------------------------
[shm]
file=/etc/httpd/logs/shm.file <--this file is empty
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8019]
tomcatId=localhost:8019
port=8019
host=127.0.0.1

# define the worker
[ajp13:localhost:8019]
channel=channel.socket:localhost:8019

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8019

jk2.properties (this is the default file that came with tomcat 4.1.24):
----------------------------------------------------------------------------------------------
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
#  handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
  channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

server.xml (just the tomcat-apache service):
----------------------------------------------------------------
<Service name="Tomcat-Apache">

    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8019 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
        port="8019" minProcessors="5" maxProcessors="75"
        enableLookups="false" redirectPort="8443" acceptCount="10" debug
="0"
        connectionTimeout="20000" useURIValidationHack="false"
        protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>


    <!-- Replace "localhost" with what your Apache "ServerName" is set to
-->
    <Engine name="Apache" defaultHost="localhost" debug="0">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
              timestamp="true"/>
      <Valve className="org.apache.catalina.valves.AccessLogValve"
              directory="logs"  prefix="localhost_access_log." suffix
=".txt"
              pattern="common" resolveHosts="false"/>

      <!-- Because this Realm is here, an instance will be shared globally
-->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

    </Engine>

  </Service>

Any help would be greatly appreciated.

Thanks,

Skyler Bingham
skyler.bingham@londen-insurance.com
1(602)957-1650 x1139


Mime
View raw message