mod_jk2 error on tomcat5, apache2, and redhat9

This is a discussion on mod_jk2 error on tomcat5, apache2, and redhat9 within the Apache Web Server forums, part of the Web Server and Related Forums category; i am using redhat 9 with its standard apache 2.0.40 from (httpd-2.0.40-21.9). i ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-01-2004
lucas
 
Posts: n/a
Default mod_jk2 error on tomcat5, apache2, and redhat9

i am using redhat 9 with its standard apache 2.0.40 from
(httpd-2.0.40-21.9). i am attempting to get tomcat 5.0.18 with
mod_jk2-2.0.4-2jpp.rpm to connect to the apache server. however i get the
error

[error] jk2_init() Can't find child 16367 in scoreboard
[error] mod_jk child init 1 -2

in the apache error_log. it actually repeats many times. so what is this
error and how do i fix it? is it a permissions thing or what.

thank you in advance and some snipets from my setup files are below

lucas

### jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/var/run/jk2.socket
#channelUnix.file=/usr/local/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/jkjni.so

### workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/var/run/jk2.shm
# file=/usr/local/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/var/run/jk2.socket]
#[channel.un:/usr/local/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/var/run/jk2.socket]
#[ajp13:/usr/local/tomcat/work/jk2.socket]
channel=channel.un:/var/run/jk2.socket
#channel=channel.un:/usr/local/tomcat/work/jk2.socket

# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]


### within server.xml

<!--
Define a Coyote/JK2 AJP 1.3 Connector on port 8009
-->
<Connector port="8009" enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3"/>

### /etc/profile.d/java.sh

#!/bin/sh
# set java environment

JAVA_HOME=/usr/local/j2sdk1.4.2_04

export JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/lib

#For jni or channelUnix, add this too:
export serverRoot=/etc/httpd
export
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/server


  #2 (permalink)  
Old 04-02-2004
Johan Louwers
 
Posts: n/a
Default Re: mod_jk2 error on tomcat5, apache2, and redhat9

Take a look at http://www.johnturner.com

It worked fore me setting it up using his guide :-)


Regards,
Johan Louwers

On Thu, 1 Apr 2004 15:01:14 -0500, "lucas" <slukacs@adelphia.net>
wrote:

>i am using redhat 9 with its standard apache 2.0.40 from
>(httpd-2.0.40-21.9). i am attempting to get tomcat 5.0.18 with
>mod_jk2-2.0.4-2jpp.rpm to connect to the apache server. however i get the
>error
>
>[error] jk2_init() Can't find child 16367 in scoreboard
>[error] mod_jk child init 1 -2
>
>in the apache error_log. it actually repeats many times. so what is this
>error and how do i fix it? is it a permissions thing or what.
>
>thank you in advance and some snipets from my setup files are below
>
>lucas
>
>### jk2.properties
># Configured for channel UNIX
>
># Set the desired handler list
>handler.list=apr,request,channelUnix
>
># UNIX Domain socket location
>channelUnix.file=/var/run/jk2.socket
>#channelUnix.file=/usr/local/tomcat/work/jk2.socket
>
># Dynamic Library
>serverRoot=/etc/httpd
>apr.NativeSo=/usr/lib/httpd/modules/jkjni.so
>
>### workers2.properties
>
># Shared memory handling. Needs to be set.
>[shm]
>info=Scoreboard. Required for reconfiguration and status with multiprocess
>servers
>file=/var/run/jk2.shm
># file=/usr/local/tomcat/logs/jk2.shm
>size=1048576
>debug=0
>disabled=0
>
># UNIX domain socket
>[channel.un:/var/run/jk2.socket]
>#[channel.un:/usr/local/tomcat/work/jk2.socket]
>tomcatId=localhost:8009
>debug=0
>
># define the worker
>[ajp13:/var/run/jk2.socket]
>#[ajp13:/usr/local/tomcat/work/jk2.socket]
>channel=channel.un:/var/run/jk2.socket
>#channel=channel.un:/usr/local/tomcat/work/jk2.socket
>
># Announce a "status" worker
>[status:status]
>info=Status worker. Displays runtime information.
>
>[uri:/jkstatus/*]
>group=status:status
>
># Uri mapping
>[uri:/examples/*]
>
># Uri mapping for MyFirst
>[uri:/MyFirst/*]
>
>
>### within server.xml
>
><!--
> Define a Coyote/JK2 AJP 1.3 Connector on port 8009
>-->
><Connector port="8009" enableLookups="false" redirectPort="8443" debug="0"
>protocol="AJP/1.3"/>
>
>### /etc/profile.d/java.sh
>
>#!/bin/sh
># set java environment
>
>JAVA_HOME=/usr/local/j2sdk1.4.2_04
>
>export JAVA_HOME
>export PATH=$PATH:$JAVA_HOME/bin
>export CLASSPATH=$JAVA_HOME/lib
>
>#For jni or channelUnix, add this too:
>export serverRoot=/etc/httpd
>export
>LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/server
>


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0