apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Timothy Suh

Subject: apache2+tomcat5.0.19+mod_jk2 in-process
Date: 5/26/2004, 11:19 AM
From: Timothy Suh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Organization: AOL

Can someone help me with setting up apache2 to start tomcat5 in-process 
using mod_jk2? out-of-process was straight forward but I am having tough 
time starting in-process. I believe i have workers2 and jk2.properties 
set up correctly. I also compiledlinked mod_jk2 on my platform (linux). 
I searched everywhere but cannot find anyone who has this working.

The erorr msgs are:

[Wed May 26 11:15:46 2004] [notice] vm.open2() done
[Wed May 26 11:15:46 2004] [error] workerEnv.initChannel() init failed 
for channel.jni:jni
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onStartup
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onShutdown

Your help is monstrously appreciated.



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



Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Timothy Suh
I am now using Tomcat5.0.25 as you suggested but still getting same 
error. I don't think Apache is even getting to the part where it starts 
calling Tomcat (TomcatStarter) because the same error is generated when 
I completely remove Tomcat5.0.25 binary distribution from my machine.
I am thinking the solution is in my workers2.properties file but not 
sure what it is.

Here is my configuration:

$APACHE_HOME/modules
   mod_jk2.so (built from source)
   linjkjni.so (built from source)
$APACHE_HOME/conf
   workers2.properties
$TOMCAT_HOME/conf
   jk2.properties

workers2.properties contain (some unrelated properties omitted)

[uriMap:]

[shm:]
disabled=1

[channel.jni:jni]
disabled=0

[status:]

[vm:]
JVM=/j2sdk-1.4.2_03/jre/lib/i386/server/libjvm.so
OPT=-server
OPT=-Dtomcat.home=TOMCATHOME
OPT=-Dcatalina.home=TOMCATHOME
OPT=-Xnoclassgc
OPT=-Xcheck:jni
OPT=-verbose
classpath=TOMCATHOME/bin/bootstrap.jar
classpath=TOMCATHOME/common/lib/jmx.jar
classpath=TOMCATHOME/server/lib/commons-modeler.jar
classpath=TOMCATHOME/server/lib/tomcat-jni.jar
classpath=TOMCATHOME/common/lib/servlet-api.jar
OPT=-Xrs

[worker.jni:onStartup]
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0

[worker.jni:onShutdown]
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0

Peter Rossbach wrote on 5/26/2004, 12:27 PM:

  Hello Timothy,
 
  the JNI integration works only with Tomcat Release greater 5.0.20
  and the commands changed to (startd and stopd)
 
  used the coming Tomcat 5.0.25 it is very stable.
  (Must add jmx.jar to your classpath)
 


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