You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Markus Ullmann - digital.FAMILY webProductions" <m....@digital-family.de> on 2002/08/04 21:46:08 UTC

Tomcat 4.1.8 and mod_jk2

Hi!

I have a problem: the server does not find the workers2.properties.

Here's what I did:
- got tomcat 4.1.8 as binary
- got tomcat 4.1.8 connector sources
- unpacked tomcat to /opt/java/jakarta-tomcat-4.1.8
- unpacked tomcat connectors and started jtc/jk/native2/buildconf.sh
-
./configure --with-apxs2=/opt/apache2/bin/apxs --with-tomcat41=/opt/java/jak
arta-tomcat-4.1.8 --with-jni
- make
- copied ../build/jk2/apache2/.libs/jkjni.so to tomcat-home/server/lib
- copied mod_jk2.so to /opt/apache2/modules

-------

my jk config file (/opt/java/jakarta-tomcat-4.1.8/conf/jk2.properties):
# Begin jk2.properties
# Written 04.08.2002 18:33

# Handler
handler.list=apr,shm,request,channelUnix,channelJni

workerEnv.file=

# Shared Object
apr.NativeSo=/opt/apache2/lib/jkjni.so
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# Shared Memory
shm.file=/tmp/jk2.shm

# Unix Socket
channelUnix.file=/tmp/jk2.socket

-------

my workers2 file (/opt/apache2/conf/workers2.properties)
[shm]
file=/tmp/jk2.shm
size=2097152

[channel.un:unixsocket]
file=/tmp/jk2.socket

[ajp13:unixsocket]
channel=channel.un:unixsocket

[uri:/*]
worker=ajp13:unixsocket

-------

A Normal Tomcat Start:

root@lfs:/root>/opt/java/jakarta-tomcat-4.1.8/bin/catalina.sh run
Using CATALINA_BASE:   /opt/java/jakarta-tomcat-4.1.8
Using CATALINA_HOME:   /opt/java/jakarta-tomcat-4.1.8
Using CATALINA_TMPDIR: /opt/java/jakarta-tomcat-4.1.8/temp
Using JAVA_HOME:       /opt/java/j2sdk1.4.0
04.08.2002 21:45:07 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
04.08.2002 21:45:07 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
04.08.2002 21:45:08 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
04.08.2002 21:45:10 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
04.08.2002 21:45:10 org.apache.jk.server.JkMain init
INFO: Starting Jk2, base dir= /opt/java/jakarta-tomcat-4.1.8
conf=/opt/java/jakarta-tomcat-4.1.8/conf/jk2.properties
No class name for workerEnv workerEnv
[Sun Aug 04 21:45:10 2002] (error ) [jk_config_file.c (261)]
config.update(): Can't find config file
${serverRoot}/conf/workers2.properties
[Sun Aug 04 21:45:10 2002] ( info ) [jk_config.c (246)]
config.setAttribute() Error setting config: file
${serverRoot}/conf/workers2.properties
[Sun Aug 04 21:45:10 2002] (error ) [jk_logger_file.c (171)]  Initializing
log file stderr
[Sun Aug 04 21:45:10 2002] (error ) [jk_shm.c (333)]  shm.init(): No file
[Sun Aug 04 21:45:10 2002] ( info ) [jk_workerEnv.c (403)]  workerEnv.init()
ok ${serverRoot}/conf/workers2.properties
04.08.2002 21:45:11 org.apache.jk.common.ChannelUn init
INFO: JK: listening on unix socket: /tmp/jk2.socket
04.08.2002 21:45:11 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 ... init time=235 ms
[Sun Aug 04 21:45:11 2002] ( info ) [jk_jni_aprImpl.c (470)]  jkInvoke()
invoke 4cd25410
Starting service Tomcat-Standalone
Apache Tomcat/4.1.8
04.08.2002 21:45:26 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080


-------

I tried also with tomcat 4.1.7 and its connectors and also connectors
directly from cvs.

What do I do wrong?

Best Regards
Markus


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