Hi there,

I've got an issue with the setup of mod_jk2(version 2.0.2) I can't seem to
get around.
I'm prety certain that my configuration is ok, so I don't know what the
problem might be.
I'm trying to run Tomcat as an inprocess to Apache, and this is where the
grief starts ;)
When launching apache I get the following in my error logs:

Fail-> could not create JVM, code: -1
[Wed Aug 27 17:41:18 2003] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Wed Aug 27 17:41:18 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Wed Aug 27 17:41:18 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Wed Aug 27 17:41:18 2003] [error] mod_jk child init 1 -2

This is my workers2.properties:

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

[vm:]
info=Parameters used to load a JVM in the server process
JVM=/opt/IBMJava2-141/jre/bin/classic/libjvm.so
OPT=-Djava.class.path=/usr/tomcat/bin/tomcat-jni.jar:/usr/tomcat/bin/tomcat-
bootstrap.jar:/usr/tomcat/server/lib/commons-logging.jar
OPT=-Dtomcat.home=/usr/tomcat/
OPT=-Dcatalina.home=/usr/tomcat/
OPT=-Xmx128M
disabled=0

[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=/usr/tomcat/logs/stdout.log
stderr=/usr/tomcat/logs/stderr.log

[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

[uri:/servlets/cybertrax/*]
info=The Cybertrax Application

[shm]
info=SHM Block
file=/var/run/jk2.shm
size=1048576
disabled=0
===


And here is my jk2.properties
====

handler.list=apr,request,channelJni
channelJni.disabled = 0
apr.jniModeSo=inprocess
shm.file=/var/run/jk2.shm
request.tomcatAuthentication=false

====

Now, the funny thing that happens is, that with the IBM JDK I get the errors
mentioned earlier. 
If I use the libjvm.so from the SUN JDK (1.4.1_03) this is what I get as
errors instead:


[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22709 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22710 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22711 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22713 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22714 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22715 in
scoreboard
[Thu Aug 28 09:35:08 2003] [error] jk2_init() Can't find child 22716 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22717 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22718 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22719 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22721 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22722 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22723 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22724 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22725 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22728 in
scoreboard
[Thu Aug 28 09:35:09 2003] [error] jk2_init() Can't find child 22729 in
scoreboard


And the error log gets saturated with those kinds of errors.

Thank you for any assistance granted,


Yiannis.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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

Reply via email to