Thist is my working example
a) I used JVM autodetection b) configured the jni channel c) add tools.jar for compiling jsp's
[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
#OPT=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
OPT=-Xmx32m
OPT=-Xms32m
OPT=-Djava.home=D:/java/j2sdk1.4.2_03
OPT=-Dcatalina.home=D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build
OPT=-Djava.class.path=D:/java/j2sdk1.4.2_03/lib/tools.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/server/lib/tomcat-jni.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/bin/jmx.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/bin/bootstrap.jar
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=startd
disabled=0
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/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=stopd
disabled=0
I hope this help.
regards peter
Timothy Suh schrieb:
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
