I am having the same problem mod_jk2, tomcat 4.1.18, apache2, but on linux. I am wondering if mod_jk2/jni inprocess works for Unix (solaris or linux). All the success stories that I've seen are on Microsoft Windows. I tried to minic their config files with no luck.
the connector builds fine and I copied both mod_jk2.so and jkjni.so into the apache2 modules directory as suggested at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/installhowto.html I then added the mod_jk2 loading in the httpd.conf: LoadModule jk2_module modules/mod_jk2.so Here is my simple tomcat/conf/jk2.properties file: handler.list=apr,request,channelJni channelJni.disabled = 0 apr.jniModeSo=inprocess Here is my simple apache2/conf/workers2.properties file: [shm] file=${serverRoot}/logs/shm.file size=1048576 [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=${TOMCAT_HOME}/bin/tomcat-jni.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} 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 Now when I start apache, I got the following in the error log: [Tue Feb 11 10:01:07 2003] [error] env.createBean2(): Factory error creating channel.jni:jni ( channel.jni, jni) [Tue Feb 11 10:01:07 2003] [error] config.update(): Can't create channel.jni:jni [Tue Feb 11 10:01:07 2003] [error] env.createBean2(): Factory error creating vm: ( vm, ) [Tue Feb 11 10:01:07 2003] [error] config.update(): Can't create vm: [Tue Feb 11 10:01:07 2003] [error] env.createBean2(): Factory error creating worker.jni:onStartup ( worker.jni, onStartup) [Tue Feb 11 10:01:07 2003] [error] config.update(): Can't create worker.jni:onStartup [Tue Feb 11 10:01:07 2003] [error] env.createBean2(): Factory error creating worker.jni:onShutdown ( worker.jni, onShutdown) [Tue Feb 11 10:01:07 2003] [error] config.update(): Can't create worker.jni:onShutdown [Tue Feb 11 10:01:07 2003] [error] mod_jk child init 1 0 [Tue Feb 11 10:01:07 2003] [error] jk2_init() Can't find child 1360 in scoreboard [Tue Feb 11 10:01:07 2003] [error] mod_jk child init 1 -2 Anybody from the core team can comment? Let me know if you need more info. Thanks! Frank --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]