tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: 2nd plea for help!
Date Mon, 10 Feb 2003 20:47:37 GMT

There was a thread yesterday or late last week (Fri, Sat, Sun EST) about
something similar, if memory serves.

I didn't pay close attention to it, but if I remember correctly, there has
to be a shared memory block, even if it is "empty".

I am hoping to get some time with JK2 this week, hopefully I can get a
first-hand look at the problems everyone else is having, which might help me
help you better.

John

> -----Original Message-----
> From: Francesa Lacreativa [mailto:xtreme_modem@yahoo.com]
> Sent: Monday, February 10, 2003 3:19 PM
> To: Tomcat Users List
> Subject: RE: 2nd plea for help!
> 
> 
> 
> John,
> This is the error I get when I use the sample configuration:
> 
> [Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory 
> error creating channel.jni:jni ( channel.jni, jni)
> [Mon Feb 10 13:09:34 2003] [error] config.update(): Can't 
> create channel.jni:jni
> [Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory 
> error creating vm: ( vm, )
> [Mon Feb 10 13:09:34 2003] [error] config.update(): Can't create vm:  
> [Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory 
> error creating worker.jni:onStartup ( worker.jni, onStartup)
> [Mon Feb 10 13:09:34 2003] [error] config.update(): Can't 
> create worker.jni:onStartup
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file 
> [Mon Feb 10 13:09:34 2003] [error] mod_jk child init 1 0 
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file 
> [Mon Feb 10 13:09:34 2003] [notice] Apache/2.0.43 (Unix) 
> mod_jk2/2.0.2 configured -- resuming normal operations  
> [Mon Feb 10 13:09:34 2003] [info] Server built: Feb  4 2003 11:38:17
> [Mon Feb 10 13:09:34 2003] [debug] prefork.c(1039): 
> AcceptMutex: pthread (default: pthread)
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> 
>  
> So it's essentially the same, I just got rid of the error 
> with the shared memory file.  It appears that all the "beans" 
> it cannot create are related to the JNI connection somehow - 
> channel.jni, vm, and the workers.  I'm thinking about trying 
> to compile the mod_jk2 library from scratch on our Solaris 
> SPARC system to see how that works.  Do you have any other 
> suggestions?
> thanks,
> -francesa
>  
>  "Turner, John" <JTurner@AAS.com> wrote:
> I'd love to help, but I don't use JK2. All I can ask is: did 
> you try it
> with the minimum configuration shown in the docs? You have 
> some extra stuff
> in your .properties files. What happens when you use the minimum
> configuration? Do you get the same error?
> 
> John
> 
> 
> -----Original Message-----
> From: Francesa Lacreativa [mailto:xtreme_modem@yahoo.com] 
> Sent: Friday, February 07, 2003 5:39 PM
> To: tomcat-user@jakarta.apache.org
> Subject: 2nd plea for help!
> 
> 
> 
> Does anyone have an idea why I would get this factory error 
> in apache? Am I
> providing too much information for you to read? Is this too stupid a
> question to answer? Can someone please just point me in the 
> right direction
> - please???
> 
> I am having a lot of difficulty getting the JNI connector for 
> Tomcat to work
> with Apache 2.0.43. I have Tomcat version 4.1.18. I have followed the
> examples in the documentation at
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
> howto.html,
> and it appears that I have everything configured correctly, 
> but I still get
> the following error in apache whenever I start apache:
> 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> channel.jni:jni ( channel.jni, jni) 
> [Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create
> channel.jni:jni 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> vm: ( vm, ) 
> [Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create vm: 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> worker.jni:onStartup ( worker.jni, onStartup) 
> [Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create
> worker.jni:onStartup 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> worker.jni:onShutdown ( worker.jni, onShutdown) [Tue Feb 04 
> 15:00:03 2003]
> [error] config.update(): Can't create worker.jni:onShutdown 
> [Tue Feb 04 15:00:03 2003] [error] mod_jk child init 1 0 
> [Tue Feb 04 15:00:03 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.2
> configured -- resuming normal operations 
> 
> 
> 
> Apache will still serve up regular HTML pages without error, 
> but whenever I
> just try to load the /examples page I get an error in my web 
> browser and the
> following error in the apache error log:
> 
> [Tue Feb 04 15:01:36 2003] [error] lb_worker.service() all 
> workers in error
> or disabled state 
> [Tue Feb 04 15:01:36 2003] [error] mod_jk.handler() Error 
> connecting to
> tomcat 120000 
> 
> 
> 
> I have jkjni.so and mod_jk2-2.0.43.so in the apache modules 
> directory. My
> JAVA_HOME, CATALINA_HOME, and LD_LIBRARY_PATH environment 
> variables are set
> correctly. I have tried this with both version 1.3.1 of the 
> JDK and 1.4.1
> but I get the same error either way. I have also tried this 
> with both 2.0.44
> and 2.0.43 versions of apache and that doesn't make a difference.
> 
> This is the contents of my jk2.properties file:
> 
> handler.list=apr,request,container,channelJni
> shm.file=/apps/apache/product/2.0.43/logs/jk2.shm
> channelJni.disabled=0 
> apr.jniModeSo=inprocess 
> 
> 
> 
> This is the contents of my workers2.properties file:
> 
> 
> 
> [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=-Djava.class.path=.;${CATALINA_HOME}/lib/tomcat-jni.jar;${
CATALINA_HOME}
> /lib/tomcat.jar:${JAVA_HOME} 
> OPT=-Dtomcat.home=${CATALINA_HOME} 
> OPT=-Dcatalina.home=${CATALINA_HOME} 
> OPT=-Xmx128M 
> 
> 
> 
> [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=${APACHE_ROOT}/logs/stdout.log 
> stderr=${APACHE_ROOT}/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=stop 
> 
> [uri:/examples/*] 
> info=Map the whole webapp 
> 
> 
> 
> [shm:] 
> debug=10 
> file=${APACHE_ROOT}/logs/jk2.shm 
> size=1000000 
> disabled=0 
> 
> 
> 
> This is how apache is loading the modules (from httpd.conf):
> 
> LoadFile modules/jkjni.so
> LoadModule jk2_module modules/mod_jk2-2.0.43.so
> 
> 
> 
> The system is a Solaris 2.8.
> 
> I have searched all through the archives and documentation 
> for a couple days
> now but I have not seen anyone with this same problem. 
> 
> PLEASE HELP!
> 
> Thank you!
> 
> -frances
> 
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Todo lo que quieres saber de Estados Unidos, América Latina y 
> el resto del
> Mundo. Visíta Yahoo! Noticias.
> 
> ---
> 
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> 
> 
> ---
> 
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Todo lo que quieres saber de Estados Unidos, América Latina y 
> el resto del Mundo.
> Visíta Yahoo! Noticias.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message