I think the problem is entirely on non-windows platforms. JVM autodetection doesnt 
even work unless on windows.

Ta
Matt

-----Original Message-----
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 20:16
To: Tomcat Users List
Subject: Re: apache2+tomcat5.0.19+mod_jk in-process



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]

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