> 
> I've solved this inserting in workers2.properties the declaration
>  >
> 
> [shm]
> 
> file=/opt/apache2/logs/shm.file
> 
> size=1048576
> 
> 
> and touching the file /opt/apache2/logs/shm.file


Unfortunately, I had already done this.. There are no "shm.init(): No
File" errors, it's only the channel.jni and workers.jni errors which are
giving me trouble.

I keep getting these:

[Thu Apr 03 20:28:12 2003] [error] workerEnv.initChannel() init failed
for channel.jni:jni
[Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed
for worker.jni:onStartup
[Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed
for worker.jni:onShutdown

So this question is still burning me up:

> >2) What must be done to init the jni channels and workers?  What is the proper file 
> >format? I've seen many (MANY) references to mod_jk2 on the internet discuss using a 
> >"workers.properties" file, which looks extremely like the old 3.x version... I 
> >can't bring myself to believe that those are right (especially since if I add any 
> >of those commands to workers2.properties, it bombs out...)  Using the examples in 
> >the docs, FAQ's, how to's and readmes results in this error log:
> >
> >----- snip -----
> >
> >[Thu Apr 03 20:28:09 2003] [notice] Apache configured -- resuming normal operations
> >[Thu Apr 03 20:28:12 2003] [error] workerEnv.initChannel() init failed for 
> >channel.jni:jni
> >[Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onStartup
> >[Thu Apr 03 20:28:12 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onShutdown
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for 
> >channel.jni:jni
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onStartup
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onShutdown
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for 
> >channel.jni:jni
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onStartup
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onShutdown
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initChannel() init failed for 
> >channel.jni:jni
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onStartup
> >[Thu Apr 03 20:28:13 2003] [error] workerEnv.initWorkers() init failed for 
> >worker.jni:onShutdown
> >TomcatStarter: main()
> >Try  org.apache.tomcat.startup.Main
> >Try  org.apache.catalina.startup.BootstrapService
> >Starting org.apache.catalina.startup.BootstrapService
> >Created catalinaLoader in: /usr/local/jakarta/tomcat/server/lib
> >[Thu Apr 03 20:28:16 2003] [error] mod_jk child init 1 0
> >Apr 3, 2003 8:28:17 PM org.apache.commons.modeler.Registry loadRegistry
> >INFO: Loading registry information
> >Apr 3, 2003 8:28:17 PM org.apache.commons.modeler.Registry getRegistry
> >INFO: Creating new Registry instance
> >Apr 3, 2003 8:28:19 PM org.apache.commons.modeler.Registry getServer
> >INFO: Creating MBeanServer
> >
> >----- snip -----
> >
> >As you can see, Tomcat IS launching.. The VM is coming up and the bootstrap is 
> >initialized... It's the channel.* and worker.* directives that are now failing..
> >
> >
> >This line causes my curiosity to peak as well, can anyone decrypt it:
> >
> >[Thu Apr 03 20:28:16 2003] [error] mod_jk child init 1 0
> >
> >
> >
> >Can ANYONE help? 
> >
> >Puh-lease?
> >
> >Ken M
> >[EMAIL PROTECTED]
> >
> >
> >
> >-------------- Big Snip ----------------
> >
> >########################################
> >######## jk2.properties ################
> >########################################
> ># list of needed handlers.
> >handler.list=apr,request,container,channelJni
> >
> ># Or you can use the mod_jk2 directly
> >#apr.jniModeSo=/usr/local/apache/modules/mod_jk2.so
> >
> >channelJni.disable = 0
> ># If you wish to start the Tomcat from inside web server then
> ># you don't need any above directive. Here is shown the default
> ># value for the apr that you can ommit
> >apr.jniModeSo=inprocess
> >
> >
> >-------------- Big Snip ----------------
> >
> >########################################
> >####### workers2.properties ############
> >########################################
> ># 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=$CLASSPATH:/usr/local/jakarta/tomcat/server/lib/tomcat-jk2.jar:/usr/local/jakarta/tomcat/bin/boots
> >trap.jar:/usr/local/jakarta/tomcat/server/lib/catalina.jar:${TOMCAT_HOME}/server/lib/commons-digester.jar:/usr/local/jak
> >arta/tomcat/common/lib/ant.jar:/usr/local/jakarta/tomcat/common/lib/commons-collections.jar:/usr/local/jakarta/tomcat/co
> >mmon/lib/commons-logging-api.jar:/usr/local/jakarta/tomcat/common/lib/jasper-compiler.jar:/usr/local/jakarta/tomcat/comm
> >on/lib/jasper-runtime.jar:/usr/local/jakarta/tomcat/common/lib/naming-common.jar:/usr/local/jakarta/tomcat/common/lib/na
> >ming-factory.jar:/usr/local/jakarta/tomcat/common/lib/naming-resources.jar:/usr/local/jakarta/tomcat/common/lib/servlet.
> >jar:/usr/local/jakarta/tomcat/server/lib/commons-beanutils.jar:/usr/local/jakarta/tomcat/server/lib/commons-digester.jar
> >:.:/usr/local/jakarta/tomcat/server/lib/commons-modeler.jar:/usr/local/jakarta/tomcat/server/lib/jakarta-regexp-1.2.jar:
> >/usr/local/jakarta/tomcat/server/lib/mx4j-jmx.jar:/usr/local/jakarta/tomcat/server/lib/servlets-common.jar:/usr/local/ja
> >karta/tomcat/server/lib/servlets-default.jar:/usr/local/jakarta/tomcat/server/lib/servlets-invoker.jar:/usr/local/jakart
> >a/tomcat/server/lib/servlets-manager.jar:/usr/local/jakarta/tomcat/server/lib/servlets-webdav.jar:/usr/local/jakarta/tom
> >cat/server/lib/tomcat-util.jar:/usr/local/jakarta/tomcat/server/lib/tomcat-warp.jar
> >OPT=-Dtomcat.home=/usr/local/jakarta/tomcat
> >OPT=-Dcatalina.home=/usr/local/jakarta/tomcat
> >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
> >
> >[uri:/*.jsp]
> >info=Map the whole webapp
> >
> >[uri:/examples/*]
> >info=Map the whole webapp
> >
> >[shm:]
> >info=SHM Block
> >file=/var/log/httpd/jk2.shm
> >size=1048576
> >
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to