I had a quick look at the source code and think I can probably get it to find the 
library but I doubt that the problem is as simple as that. Probably best left to the 
experts as I dont have the time to put too much effort into it.

I'll let you know if I have any success on linux.

-----Original Message-----
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 21:01
To: Tomcat Users List
Subject: RE: REPOST: Connecting Apache 2 and Tomcat 5 in process using
JK2 on Solairs 9


I seem to recall from several months ago that this really only works on
Windows, but I'm not sure if the development of this has progressed from
there.  I'd be interested to know if you get it to work.  The errors you are
seeing on the Sun machine are identical to the ones I saw on the Linux
machine.

Good Luck.

Drew

-----Original Message-----
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 3:49 PM
To: Tomcat Users List
Subject: RE: REPOST: Connecting Apache 2 and Tomcat 5 in process using
JK2 on Solairs 9



My next step to was to try to get it working on Linux to see if I get the
same error. The fact that the variable is called jvm_dll_path concerns me so
it may only work on windows but lets hope not.

Ta
Matt

-----Original Message-----
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 20:38
To: Tomcat Users List
Subject: RE: REPOST: Connecting Apache 2 and Tomcat 5 in process using
JK2 on Solairs 9


I'm not sure of this, so don't quote me, but I was attempting to do this on
Linux only to find out that it didn't work on Linux.  It may be the same on
the Sun boxes though I have not attempted this.  I ended up using
channelSocket and starting Tomcat during the apache start up process.  It
works just fine that way and is not that much different than the way I was
doing it in TC4 and apache 1.3.

Regards,

Drew

-----Original Message-----
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 3:13 PM
To: Tomcat Users List (E-mail)
Subject: REPOST: Connecting Apache 2 and Tomcat 5 in process using JK2
on Solairs 9


Sorry to post again but I havent seen a reply.

Anyone got any ideas?

Ta
Matt

-----Original Message-----
From: Dale, Matt 
Sent: 03 April 2004 11:25
To: 'Tomcat Users List'
Subject: Connecting Apache 2 and Tomcat 5 in process using JK2 on
Solairs 9


Hi,

I'm having some trouble getting Tomcat to start in process, i've seen the
error in the archives but no-one has suggested a solution.

I am using the minimum recommended configuration from the jakarta site for
both jk2.properties and workers2.properties but have increased logging to
DEBUG so you can see what is going on.

Basically as far as I can tell it seems to think it is on windows and
although states that it is going to use LD_LIBRARY_PATH it ignores it.

below i'll include all my conf files and the apache error log that shows the
errors.

Thanks for any help or tips
Matt



Apache is 2.0.48
Tomcat is 5.0.19
JK2 is 2.0.4
JDK is 1.4.2_04

bash-2.05# find /usr/local/j2sdk1.4.2_04 -name "libjvm.so"
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/server/libjvm.so
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/client/libjvm.so
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/libjvm.so

bash-2.05# echo $LD_LIBRARY_PATH
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/server:/usr/local/lib

bash-2.05# cat /usr/local/jakarta-tomcat-5.0.19/conf/jk2.properties
## 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,container,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



bash-2.05# cat /usr/local/apache2.0.48/conf/workers2.properties
[logger]
level=DEBUG

# 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=/usr/local/jakarta-tomcat-5.0.19/lib/tomcat-jni.jar;/u
sr/local/jakarta-tomcat-5.0.19/lib/tomcat.jar
OPT=-Dtomcat.home=/usr/local/jakarta-tomcat-5.0.19
OPT=-Dcatalina.home=/usr/local/jakarta-tomcat-5.0.19
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


bash-2.05# cat error_log
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done logger
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done channel.jni:jni
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done vm:
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done
worker.jni:onStartup
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done
worker.jni:onShutdown
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done uri:/examples/*
[Sat Apr 03 11:01:30 2004] [notice] shm.init(): shm file not specified
[Sat Apr 03 11:01:30 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 24354
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 03 11:01:30 2004] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 24355
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 03 11:01:30 2004] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 24356
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 03 11:01:30 2004] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 24357
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 03 11:01:31 2004] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 24358
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:31 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 03 11:01:31 2004] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Sat Apr 03 11:01:31 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.4
configured -- resuming normal operations
[Sat Apr 03 11:01:32 2004] [notice] vm.open2() done
[Sat Apr 03 11:01:32 2004] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Sat Apr 03 11:01:32 2004] [notice] workerJni.Init() Skipping initialization
for the 24356 24356
[Sat Apr 03 11:01:32 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Apr 03 11:01:32 2004] [notice] workerJni.Init() Skipping initialization
for the 24356 24356
[Sat Apr 03 11:01:32 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Apr 03 11:01:32 2004] [notice] workerEnv.init() ok
/usr/local/apache2.0.48/conf/workers2.properties
[Sat Apr 03 11:01:32 2004] [notice] mod_jk2 child 24356 initialized
[Sat Apr 03 11:01:33 2004] [notice] vm.open2() done
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24354 24354
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24354 24354
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Apr 03 11:01:33 2004] [notice] vm.open2() done
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24357 24357
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24357 24357
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Apr 03 11:01:33 2004] [notice] workerEnv.init() ok
/usr/local/apache2.0.48/conf/workers2.properties
[Sat Apr 03 11:01:33 2004] [notice] mod_jk2 child 24357 initialized
[Sat Apr 03 11:01:33 2004] [notice] vm.open2() done
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24355 24355
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24355 24355
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Apr 03 11:01:33 2004] [notice] workerEnv.init() ok
/usr/local/apache2.0.48/conf/workers2.properties
[Sat Apr 03 11:01:33 2004] [notice] mod_jk2 child 24355 initialized
[Sat Apr 03 11:01:33 2004] [notice] vm.open2() done
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24358 24358
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Apr 03 11:01:33 2004] [notice] workerJni.Init() Skipping initialization
for the 24358 24358
[Sat Apr 03 11:01:33 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Apr 03 11:01:33 2004] [notice] workerEnv.init() ok
/usr/local/apache2.0.48/conf/workers2.properties
[Sat Apr 03 11:01:33 2004] [notice] mod_jk2 child 24358 initialized
[Sat Apr 03 11:01:33 2004] [notice] workerEnv.init() ok
/usr/local/apache2.0.48/conf/workers2.properties
[Sat Apr 03 11:01:33 2004] [notice] mod_jk2 child 24354 initialized
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Reply via email to