Hi,

I am having a problem with mod_jk2.

Here are the details:

Windows 2000 
Apache 2.0.47, running on port 80
Apache Tomcat 4.1.24, running on port 8080 (AJP13 on
port 8009)
Mod_JK2 v2.0.2 (Pre-Built Binary)

I couldn't find jkjni.dll pre-built, so I didn't use
JNI.

I have included a list of all the config files etc. in
a text file (attachment).

I've exhausted almost all possibilities trying to
connect Apache and Tomcat. It doesn't work. (I've
included the Error Log in the textfile.)

So please help me out and tell me what the problem is.
I don't have a decent C++ compiler (like VC++/G++) -
so compiling the source code from scratch is ruled out
:(

So please help me out.

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
workers2.properties
-------------------
# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Define the comunication channel 
#[channel.jni:jni]
#info=The jni channel, used if tomcat is started inprocess

# Define the parameters for the Java Virtual Machine
#[vm:]
#info=Parameters used to load a JVM in the server process
#OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/lib/tomcat.jar
#OPT=-Dtomcat.home=${TOMCAT_HOME}
#OPT=-Dcatalina.home=${TOMCAT_HOME}
#OPT=-Xmx128M

# JNI worker startup handler
#[worker.jni:onStartup]
#info=Command to be executed by the VM on startup. This one will start tomcat.
#class=org/apache/jk/apr/TomcatStarter
#ARG=start
#stdout=${serverRoot}/logs/stdout.log
#stderr=${serverRoot}/logs/stderr.log

# JNI worker shutdown handler
#[worker.jni:onShutdown]
#info=Command to be executed by the VM on shutdown. This one will stop tomcat.
#class=org/apache/jk/apr/TomcatStarter
#ARG=stop

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

httpd.conf
----------
LoadModule jk2_module modules/mod_jk2.dll (v2.0.2)

jk2.properties
--------------
# 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 (default, as in distro)
----------

AJP13 on 8009

config
------
x Win2000
x Apache 2.0.47
x Tomcat 4.1.24
x JK2 2.0.2 (Binary)
x JDK 1.4.2
x All on localhost


(Accessed URL : http://localhost/examples)
(Also tried   : http://localhost/examples/servlet/HelloWorldExample)

error.log
---------
[Wed Nov 05 16:17:53 2003] [error] shm.init(): No file
[Wed Nov 05 16:17:53 2003] [notice] Parent: Created child process 724
[Wed Nov 05 16:17:53 2003] [error] shm.init(): No file
[Wed Nov 05 16:17:53 2003] [notice] Child 724: Child process is running
[Wed Nov 05 16:17:53 2003] [error] shm.init(): No file
[Wed Nov 05 16:17:53 2003] [error] mod_jk child init 1 0
[Wed Nov 05 16:17:53 2003] [notice] Child 724: Acquired the start mutex.
[Wed Nov 05 16:17:53 2003] [notice] Child 724: Starting 250 worker threads.
[Wed Nov 05 16:17:58 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:17:58 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:17:58 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:17:58 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:01 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:01 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:01 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:01 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:01 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:01 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:01 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:01 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:01 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:01 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:02 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:02 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:02 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:02 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:02 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:02 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:02 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:02 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:02 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:02 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:02 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:02 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:02 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:02 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:02 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:02 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:02 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Nov 05 16:18:02 2003] [error] lb.service() worker failed 120000 for 
ajp13:localhost:8009
[Wed Nov 05 16:18:02 2003] [error] lb.service() unrecoverable error...
[Wed Nov 05 16:18:02 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
[Wed Nov 05 16:18:14 2003] [notice] Parent: Received shutdown signal -- Shutting down 
the server.
[Wed Nov 05 16:18:14 2003] [notice] Child 724: Exit event signaled. Child process is 
ending.
[Wed Nov 05 16:18:15 2003] [notice] Child 724: Released the start mutex
[Wed Nov 05 16:18:16 2003] [notice] Child 724: Waiting for 250 worker threads to exit.
[Wed Nov 05 16:18:16 2003] [notice] Child 724: All worker threads have exited.
[Wed Nov 05 16:18:16 2003] [notice] Child 724: Child process is exiting
[Wed Nov 05 16:18:16 2003] [notice] Parent: Child process exited successfully.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to