Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi All its me again, Every thing works fine but you have to manually map every URL servlet - I'm sure this is not correct. I'm posting this last e-mail on this subject unless someone can address the jk2_init() issue. Rest assured for all concerned I'm not even dreaming of looking at jkini in-process implementation. However I find it a bit strange that the Apache and Tomcat group couldn't dream up a better way of transferring data than a shared flat file. Anyway its been fun hacking at a solution even though these days I really don't have the time or money for such indulgences :-( This e-mail has all the relevant information you need to get things working. What I did in summary: OS: Linux 9 Red Had JDK: j2sdk1.4.1_02 Httpd-2.0.48 - Apache 2 built from Source Tomcat-4.1.29 - Tomcat 4.1.29 built from Source Jakarta-Tomcat-Connectors-4.1.29 - Jakarta-Tomcat-Connectors-4.1.29 built from "ant native" from the JK directory remember you need to build all the relevant Jar files that you will update in Tomcat. Just follow the readme files and ignore everything else. APR version from Apache 2 above WORKS however if your building "mod_webapp" module you must download the latest version. Bellow are the relevant files to get things happening, I've always found these files poorly documented. Its more an exercise in luck and patience until the next release when you have to go through the process again. :-( . snippet httpd.conf jk2.properties worker2.properties ** httpd.conf file LoadModule jk2_module modules/mod_jk2.so JkSet config:file "/usr/local/jakarta-tomcat-4.1.29/conf/workers2.properties" Alias /examples "/usr/local/jakarta-tomcat-4.1.29/webapps/examples" Options Indexes FollowSymLinks AllowOverride None deny from all ** ** jk2.properties file shm.file=/temp/jk2.shm # list of needed handlers. handler.list=apr,request,channelJni # Dynamic library needs to be defined only if Tomcat is used # out of process # apr.NativeSo=/usr/local/apache2/modules/libjkjni.so # Or you can use the mod_jk2 directly apr.jniModeSo=/usr/local/apache2/modules/mod_jk2.so # 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 ** ** workers2.properties file [logger] level=WARN #INFO #/web_ci/ [config:] file=/usr/local/jakarta-tomcat-4.1.29/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=WARN file=/usr/local/jakarta-tomcat-4.1.29/logs/jk2.log # Cache for activity # Must point to a writeable path [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/temp/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=99 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 # Communication channel to use [channel.socket:sslaptop.gsss.net:8001] info=Ajp13 forwarding over socket debug=0 tomcatId=sslaptop.gsss.net:8001 # Connector as in conf/server.xml [ajp13:sslaptop.gsss.net:8001] channel=channel.socket:sslaptop.gsss.net:8001 # Tomcat load balancing [lb:lb] info=Default load balancer. debug=0 [status:status] info=Status worker, displays runtime informations # Monitor for requests and config http://sslaptop.gsss.net:8057/jkstatus [uri:/jkstatus] info=Display status information and checks the config file for changes. worker=ajp13:sslaptop.gsss.net:8001 context=/jkstatus group=status:status tomcatId=sslaptop.gsss.net:8001 [uri:/examples] info=Display status information and checks the config file for changes. worker=ajp13:sslaptop.gsss.net:8001 context=/examples group=status:status tomcatId=sslaptop.gsss.net:8001 [uri:/examples/*.jsp] info=jsp files map always [uri:/examples/servlet/RequestInfoExample] info=servlet - see what I mean for every servlet [uri:/examples/servlet/HelloWorldExample] info=servlet- see what I mean for every servlet [uri:/examples/servlet/RequestHeaderExample] info=servlet- see what I mean for every servlet [uri:/examples/servlet/JndiServlet] info=servlet- see what I mean for every servlet ** many many many thanks to all George - Original Message - From: "George Shafik" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, January 10, 2004 6:31 PM Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots > Hi All, > >
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi All, Well after going back to Yahoo! I found a page that at least got Tomcat 4.1.29 talking to Apache 2 though mod_jk2 YES! :))) ))) http://www.kawao.com/java/docs/mod_jk.html (note the mod_jk2 is further down the page) Its not all in English but the critical parts are - look at the section titled httpd.conf file and the way they set-up the context mapping to /examples (It would be great if someone would translate as I couldn't find a link for an English version) Still getting the jk2_init() error but I can now move on. I will post a complete HOWTO in the next week Cheers, George - Original Message - From: "George Shafik" <[EMAIL PROTECTED]> To: "Nikola Milutinovic" <[EMAIL PROTECTED]>; "Peter O'Reilly" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Mark Eggers" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, January 10, 2004 2:03 PM Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots > Hi Nikola and any one else that can help, > > I'm still stuck on jk2_init() error - > even though many developers out there reckon this is not an issue I still > find it concerning that Apache2 is trying to find a Child process and > reports it as an [error]. > > [Sat Jan 10 13:15:08 2004] [notice] mod_jk.post_config() first invocation > [Sat Jan 10 13:15:08 2004] [notice] mod_jk.post_config() second invocation > [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2089 in none > of the 256 scoreboard slots > [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2090 in none > of the 256 scoreboard slots > [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2091 in none > of the 256 scoreboard slots > [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2092 in none > of the 256 scoreboard slots > [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2093 in none > of the 256 scoreboard slots > [Sat Jan 10 13:15:08 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev > configured -- resuming normal operations > [Sat Jan 10 13:15:24 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/examples > [Sat Jan 10 13:15:24 2004] [error] jk2_init() Can't find child 2095 in none > of the 256 scoreboard slots > [Sat Jan 10 13:15:30 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/examples > [Sat Jan 10 13:15:33 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/examples > [Sat Jan 10 13:15:37 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/examples > [Sat Jan 10 13:15:44 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/examples, referer: > http://sslaptop.gsss.net/examples/ > [Sat Jan 10 13:15:48 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/examples, referer: > http://sslaptop.gsss.net/examples/ > [Sat Jan 10 13:16:03 2004] [error] [client 192.168.0.100] File does not > exist: /usr/local/apache2/htdocs/jkstatus > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > [Sat Jan 10 13:22:47 2004] [notice] caught SIGTERM, shutting down > [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)] Level WARN 0 > > Anyway I've managed to rebuild all mod_jk2.so and all relative jar files > with no issues with the org.apache.coyote.tomcat4.CoyoteConnector. > Unfortunately I still can't talk to Tomcat directly from Apache via the > standard socket method. > > Following are: > snippet httpd.con > snippet server.xml > workers2.properties > jk2.properties > > Any help would be greatly appreciated as I've spent far too much time on > this with no real results is very frustrating. > Apologies for a
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
[channel.socket:sslaptop.gsss.net:8001] info=Ajp13 forwarding over socket debug=0 tomcatId=sslaptop.gsss.net:8001 # Connector as in conf/server.xml [ajp13:sslaptop.gsss.net:8001] channel=channel.socket:sslaptop.gsss.net:8001 # Tomcat load balancing [lb:lb] info=Default load balancer. debug=0 [status:status] info=Status worker, displays runtime informations # Monitor for requests and config http://sslaptop.gsss.net:8057/jkstatus [uri:/jkstatus/*] info=Display status information and checks the config file for changes. worker=ajp13:sslaptop.gsss.net:8001 context=/jkstatus group=status:status tomcatId=sslaptop.gsss.net:8001 [uri:/examples/*] info=Display status information and checks the config file for changes. worker=ajp13:sslaptop.gsss.net:8001 context=/examples group=status:status tomcatId=sslaptop.gsss.net:8001 workers2.properties * * jk2.properties # list of needed handlers. handler.list=apr,request,channelJni # Dynamic library needs to be defined only if Tomcat is used # out of process # apr.NativeSo=/usr/local/apache2/modules/libjkjni.so # Or you can use the mod_jk2 directly apr.jniModeSo=/usr/local/apache2/modules/mod_jk2.so # 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 * jk2.properties Kind Regards, George Shafik In completing one discovery we never fail to get an imperfect knowledge of others of which we could have no idea before, so that we cannot solve one doubt without creating several new ones. -Joseph Priestly, 1786 - Original Message - From: "Nikola Milutinovic" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, January 04, 2004 11:01 PM Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots > Subject: Fw: jk2_init() Can't find child in none of the 1024 scoreboard > slots > > > > Hi Peter, > > > > I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors 4.1.29. > > I'm hoping the problem it is not the mod_jk2.so module as I went to great > > trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8 > > platform. I had to recompile apr, apr-util code and only "ant native" > > managed to build mod_jk2.so > > > ### error.log file in Apache2.0.48 log > > ### > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev > > configured -- resuming normal operations > > These are mostly harmless messages. The only way I found to avoid them was a > rather long one. > > In order for Apache + mod_jk2 to find neighbour children is to configure > shared memory for mod_jk2. And it must be configured on both Apache and > Tomcat side. If you drop Tomcat side, then it will complain. :-) > > For shared memory in Coyote-jk2 handler, you need to build jkjni.so (you may > screem in agony :-)). JK-JNI gives you "Java Native Interface" > functionality, which includes UNIX SHM and UNIX file sockets. > > In order for jkjni.so to function correctly, it must have an environment > variable "serverRoot" defined on the process level, or it will not be able > to locate workers2.properties (it is in Apache's config dir). To be honest, > jkjni.so was designed for another purpose - running Tomcat from within > Apache process (in-process). This environment variable is provided by > Apache. All of us who wish to run a standalone Tomcat and still use jkjni.so > must emulate this. The only way I found to do that was to place > > export serverRoot=/etc/httpd/2.0 > > in Tomcat's config/startup scripts. Like I said - it is long one. > > > [Sun Jan 04 12:08:37 2004] [notice] caught SIGTERM, shutting down > > Normal shutdown, I'd say. > > > ### jk2.prorperties ### > > ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED > > ## WHEN YOU EDIT THE FILE. > > ## COMMENTS WILL BE _LOST_ > > ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. > > # Set the desired handler l
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Nikola, > Consult docs at http://jakarta.apache.org -> Tomcat -> Documentation. Ok after consulting the doco I'm now getting : 6/01/2004 21:31:14 org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:857) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) org.apache.coyote.tomcat4.CoyoteConnector is a main connector class and should be in the appropriate jar file - obvious the connector jar file I replace it with has caused this - but the completation of all files in jakarta-tomcat-connectors-4.1.29-src was 100% - and I should not have to dive into the jar files looking for the binaries. These are the steps I've followed till now exactly as per documentation from the above link: 1) using jakarta-tomcat-connectors-4.1.29-src and all Apr stuff defaulted to Apache 2.0.48 Successfully created mod_jk2.so connected and managed to libjkini.so (not that I need it as I'm going for a standard connection!) I also did this accoring to the doc in the connectors main help directory Installing tomcat-connector in tomcat4.1 get the new connector ( I'll post the URL soon ) move mx4j-jmx.jar from server/lib to common/lib. This is not required, but allows you to use JMX. If you run tomcat in a sandbox - you can replace mx4j-jmx with jmxri-1.2, which has policy-based security. in server/lib, replace tomcat-util.jar, tomcat-jk2.jar, tomcat-coyote.jar and tomcat-http11.jar with the new versions.copy tomcat4-coyote.jar to server/lib. This is a new file containing the coyote adapter for tomcat4, used to be in tomcat-coyote.jar remove bin/tomcat-jni.jar ( it is an odd file that causes several problems - if you use in-process tomcat we'll provide a different mechanism ) 2) Update j2.properties and workers2.properties files exactly as shown in the sample that came with your docs j2.properties file # The default port is 8009 but you can use another one # channelSocket.port=8019 workers2.properties # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp 4) did nothing to my server.xml file factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml usernamesa password driverClassName org.hsql.jdbcDriver url jdbc:HypersonicSQL:database mail.smtp.host localhost Great effort if only to commend you on getting to the end of this e-mail! Kind Regards, George Shafik In completing one discovery we never fail to get an imperfect knowledge of others of which we could have no idea before, so that we cannot solve one doubt without creating several new ones. -Joseph Priestly, 1786 - Original Message - From: "Nikola Milutinovic" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>Hi Sent: Sunday, January 04, 2004 11:01 PM Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots > Subject: Fw: jk2_init() Can't find child in none of the 1024 scoreboard > slots > > > > Hi Peter, > > > > I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors 4.1.29. > > I'm hoping the problem it is not the mod_jk2.so module as I went to great > > trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8 > > platform. I had to recompile apr, apr-util code and only "ant native" > > managed to build mod_jk2.so > > > ### error.log file in Apache2.0.48 log > > ### > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in > none > > of the 256 scoreboard slots > > [Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev > > configured -- resuming normal oper
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Subject: Fw: jk2_init() Can't find child in none of the 1024 scoreboard slots > Hi Peter, > > I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors 4.1.29. > I'm hoping the problem it is not the mod_jk2.so module as I went to great > trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8 > platform. I had to recompile apr, apr-util code and only "ant native" > managed to build mod_jk2.so > ### error.log file in Apache2.0.48 log > ### > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in none > of the 256 scoreboard slots > [Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev > configured -- resuming normal operations These are mostly harmless messages. The only way I found to avoid them was a rather long one. In order for Apache + mod_jk2 to find neighbour children is to configure shared memory for mod_jk2. And it must be configured on both Apache and Tomcat side. If you drop Tomcat side, then it will complain. :-) For shared memory in Coyote-jk2 handler, you need to build jkjni.so (you may screem in agony :-)). JK-JNI gives you "Java Native Interface" functionality, which includes UNIX SHM and UNIX file sockets. In order for jkjni.so to function correctly, it must have an environment variable "serverRoot" defined on the process level, or it will not be able to locate workers2.properties (it is in Apache's config dir). To be honest, jkjni.so was designed for another purpose - running Tomcat from within Apache process (in-process). This environment variable is provided by Apache. All of us who wish to run a standalone Tomcat and still use jkjni.so must emulate this. The only way I found to do that was to place export serverRoot=/etc/httpd/2.0 in Tomcat's config/startup scripts. Like I said - it is long one. > [Sun Jan 04 12:08:37 2004] [notice] caught SIGTERM, shutting down Normal shutdown, I'd say. > ### jk2.prorperties ### > ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED > ## WHEN YOU EDIT THE FILE. > ## COMMENTS WILL BE _LOST_ > ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. > # Set the desired handler list > # handler.list=apr,request,channelJni Why are you using "channelJni"? You could use "apr,request,channelSocket" and drop JNI completely. Take look at Tomcats docs and JK2 section. > ## workers.properties > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > Why are you using "workers.properties"? It is for mod_jk. For mod_jk2 you must use "worker2.properties". Consult docs at http://jakarta.apache.org -> Tomcat -> Documentation. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Thanks for the link, Tony ! Just uploaded my updated write-up with corrections and modifications to the mod_jk2 compile. Regards, pascal chong Tony F. White wrote: Hi Chong, I know I did have some problems when I first tried it but found this page http://www.pubbitch.org/jboss/mod_jk2.html I don’t use jboss but step 8 certainly did solve at least one of the problems I came across. Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Chong, I know I did have some problems when I first tried it but found this page http://www.pubbitch.org/jboss/mod_jk2.html I dont use jboss but step 8 certainly did solve at least one of the problems I came across. Cheers Tony -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 2:40 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots Hi Tony ! I'm surprised you got the ant command working ! I tried that first, and wasted a lot of time tinkering with the build.xml with no success. I always use the "configure" command now. Ant is a great tool, but I suspect that the buildfile is broken somehow (or maybe it's just me !). Regards, pascal chong Tony F. White wrote: >Hi Chong, > >I have managed to get the connectors working... >This time I downloaded the JK2 connectors from >http://jakarta.apache.org/site/sourceindex.cgi > >And did an old fashioned >cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 >./configure --with-apxs2=/usr/local/apache2/bin/apxs >make > >And copy to apache2/modules/ > >So far so good... > >Previously I was doing >cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ >cp build.properties.sample build.properties >vim build.properties >ant native >and copy... > >The native method has normally worked for me no problems, I hadn't done the >configure & make with the jakarta-tomcat-connectors-4.1.29 as there isnt a >configure command > >Thanks for your help, and I am glad you like our services. > >Cheers >Tony > > > - 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]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Tony ! I'm surprised you got the ant command working ! I tried that first, and wasted a lot of time tinkering with the build.xml with no success. I always use the "configure" command now. Ant is a great tool, but I suspect that the buildfile is broken somehow (or maybe it's just me !). Regards, pascal chong Tony F. White wrote: Hi Chong, I have managed to get the connectors working... This time I downloaded the JK2 connectors from http://jakarta.apache.org/site/sourceindex.cgi And did an old fashioned cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And copy to apache2/modules/ So far so good... Previously I was doing cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ cp build.properties.sample build.properties vim build.properties ant native and copy... The native method has normally worked for me no problems, I hadn't done the configure & make with the jakarta-tomcat-connectors-4.1.29 as there isn’t a configure command Thanks for your help, and I am glad you like our services. Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Chong, I have managed to get the connectors working... This time I downloaded the JK2 connectors from http://jakarta.apache.org/site/sourceindex.cgi And did an old fashioned cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And copy to apache2/modules/ So far so good... Previously I was doing cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ cp build.properties.sample build.properties vim build.properties ant native and copy... The native method has normally worked for me no problems, I hadn't done the configure & make with the jakarta-tomcat-connectors-4.1.29 as there isnt a configure command Thanks for your help, and I am glad you like our services. Cheers Tony -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 9:45 AM To: Tomcat Users List Subject: Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots Almost finished my updated mod_jk2 compilation write-up. Should be on my site by today. You will need the following packages installed (rpm or source): - automake - autoconf - m4 - libtool (BTW, good company you work for! I use the site quite frequently to translate Mandarin to English and vice versa...) Regards, pascal chong Tony F. White wrote: >Hi Chong, > >Load balancing is just a change in the configuration file thats all, I >think it has to have something to do with the compilation, what lib was it >that you were missing? Perhaps that is our problem too. > >Kind Regards >Tony F. White >WorldLingo Technical Support > > >-Original Message- >From: Chong Yu Meng [mailto:[EMAIL PROTECTED] >Sent: Wednesday, 5 November 2003 5:23 PM >To: Tomcat Users List >Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard >slots > >Hi Tony, > >I can't help you with the load balanced configuration because I'm not >using load balancing (yet). I was using the older version of mod_jk2 >just fine too. When the rpm file disappeared from the download site, I >had to compile using the latest version, and that is when my problems >started. > > From the description of your problem, I would say that something is >wrong either with the file you downloaded (corrupted download?) or your >compilation failed somewhere. The bad thing about jk2's compile is that >it doesn't give you many errors when it fails, and if you don't look too >closely, the failure can be invisible. I spent 2 days compiling and >re-compiling initially, because I was missing a library file (and didn't >even know it). > >I'm investigating this on my end too. Has anybody else on this list >tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? > >Regards, >pascal chong > > >Tony F. White wrote: > > > >>Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) >> >> >it > > >>does log the "[error] mod_jk child init 1 -2" after the jk_init error >>message. Everything else stays the same the only thing I have changed is >>the mod_jk2.so and it works. But we need to be sure we are using the more >>recent version cause we feel that it could be the cause of some of our >>problems. >> >>Kind Regards >>Tony F. White >>WorldLingo Technical Support >> >> >> >>-Original Message- >>From: Tony F. White [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, 5 November 2003 4:16 PM >>To: 'Tomcat Users List' >>Subject: RE: jk2_init() Can't find child in none of the 1024 >> >> >scoreboard > > >>slots >> >>Hi, >> >>I dont think the problem is on the tomcat side of things, as if I change >>the mod_jk2.so back to the old version we have it we are able to connect. >>I have looked over the archives and noticed that others have had this >>message but for them it was followed by "[error] mod_jk child init 1 -2" I >>am not getting this line... >>I also cannot access the /jkstatus page which comes form mod_jk does it >> >> >not? > > >>The library compiled find apart from the usual warnings: >> >>apache20: >> [mkdir] Created dir: >>/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 >> [so] Compiling 42 out of 42 >>Compiling >>/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/ j >> >> >k > > >>_logger_apache2.c >>Compiling >>/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/ m >> >> >o > > >>d_jk2.c >> [so]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Almost finished my updated mod_jk2 compilation write-up. Should be on my site by today. You will need the following packages installed (rpm or source): - automake - autoconf - m4 - libtool (BTW, good company you work for! I use the site quite frequently to translate Mandarin to English and vice versa...) Regards, pascal chong Tony F. White wrote: Hi Chong, Load balancing is just a change in the configuration file that’s all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the "[error] mod_jk child init 1 -2" after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I don’t think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by "[error] mod_jk child init 1 -2" I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/j k _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprIm p l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk 2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml When that's complete you'll
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Chong, Load balancing is just a change in the configuration file thats all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: >Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it >does log the "[error] mod_jk child init 1 -2" after the jk_init error >message. Everything else stays the same the only thing I have changed is >the mod_jk2.so and it works. But we need to be sure we are using the more >recent version cause we feel that it could be the cause of some of our >problems. > >Kind Regards >Tony F. White >WorldLingo Technical Support > > > >-Original Message- >From: Tony F. White [mailto:[EMAIL PROTECTED] >Sent: Wednesday, 5 November 2003 4:16 PM >To: 'Tomcat Users List' >Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard >slots > >Hi, > >I dont think the problem is on the tomcat side of things, as if I change >the mod_jk2.so back to the old version we have it we are able to connect. >I have looked over the archives and noticed that others have had this >message but for them it was followed by "[error] mod_jk child init 1 -2" I >am not getting this line... >I also cannot access the /jkstatus page which comes form mod_jk does it not? > >The library compiled find apart from the usual warnings: > >apache20: >[mkdir] Created dir: >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 > [so] Compiling 42 out of 42 >Compiling >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/j k >_logger_apache2.c >Compiling >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o >d_jk2.c > [so] Warnings: > [so] >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o >d_jk2.c:294: warning: missing initializer > [so] >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o >d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') >... > [so] Warnings: > [so] >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : >In function `jk2_pool_a_strdup': > [so] >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : >283: warning: empty body in an if-statement >Compiling >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprIm p >l.c >Linking >/usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk 2 >.so > >I have tried re-compiling it a couple of times but I still cannot get it to >work. > >Tony > > >-Original Message- >From: Peter O'Reilly [mailto:[EMAIL PROTECTED] >Sent: Wednesday, 5 November 2003 12:49 PM >To: Tomcat Users List >Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard >slots > >The quickest way to do this is, > >( assumes testing with http://localhost ) > >1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes >to your directory. > >2) Add the html code to call one of the servlets. > >If you can call one of the example servlets then you can backtrack and get >ride of the example servlets and JSP and add your own. > >If testing on localhost make sure you have workers.properies, property.host >=localhost >AND >make sure the servlet.xml >When that's complete you'll want to clean up the web.xml file also. >
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the "[error] mod_jk child init 1 -2" after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I don’t think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by "[error] mod_jk child init 1 -2" I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/jk _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprImp l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote: I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it is obviously unusable now. Regards, pascal chong Tony F. White wrote: Hello, I am hoping someone might be able to help me work out what on earth is going on here, we have just updated tomcat to 4.1.29 and we are having problems getting the connectors from apache to tomcat to work. I am using the connectors from 4.1.29 to compile the mod_jk2.so but every time I try to start apache with it I get
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the "[error] mod_jk child init 1 -2" after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by "[error] mod_jk child init 1 -2" I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/jk _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprImp l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml I'm having the same problems, Tony. I got mod_jk2 compiled and tried to >setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the >missing child (children ? ;)) errors, but I was able to get the >servlets and JSPs working, though they spit out errors occasionally. Can >you post your jk2.properties and workers2.properties? I'm trying to >update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because >it is obviously unusable now. > >Regards, >pascal chong > > > >Tony F. White wrote: > > >Hello, > > > > > > > >I am hoping someone might be able to help me work out what on earth is > going on here, we have just updated tomcat to 4.1.29 and we are having > problems getting the connectors from apache to tomcat to work. I am > using the connectors from 4.1.29 to compile the mod_jk2.so but every time > I try to start apache with it I get the following (child numbers change > each time): > > > > > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28446 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28449 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28452 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28455 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28458 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28461 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find chil
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by "[error] mod_jk child init 1 -2" I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/jk _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/mo d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c: 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprImp l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml I'm having the same problems, Tony. I got mod_jk2 compiled and tried to >setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the >missing child (children ? ;)) errors, but I was able to get the >servlets and JSPs working, though they spit out errors occasionally. Can >you post your jk2.properties and workers2.properties? I'm trying to >update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because >it is obviously unusable now. > >Regards, >pascal chong > > > >Tony F. White wrote: > > >Hello, > > > > > > > >I am hoping someone might be able to help me work out what on earth is > going on here, we have just updated tomcat to 4.1.29 and we are having > problems getting the connectors from apache to tomcat to work. I am > using the connectors from 4.1.29 to compile the mod_jk2.so but every time > I try to start apache with it I get the following (child numbers change > each time): > > > > > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28446 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28449 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28452 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28455 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28458 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28461 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28463 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28464 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28467 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28470 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28473 in > none of the 1024 scoreboard slots > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 284
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hello, Here is the workers2.properties, note we normally have a load balance setup hence the tomcatID stuff... - # Begin workers2.properties ** [logger.file] #level=DEBUG level=ERROR file=/webapps/worldlingo/logs/mod_jk2.log [shm] file=/usr/local/apache2/logs/shm.file size=1048576 [channel.socket:testsocket] host=test port=8009 group=lb_1 tomcatId=test lbfactor=1 [ajp13:testsocket] tomcatId=test route=test #group=lb_1 level=1 max_connections=177 # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/wl/*] group=lb_1 [lb:lb_1] #timeout=0 #attempts=3 #recovery=60 #worker=? #noWorkerMsg=? #noWorkerCode=503 #hwBalanceErr=? - Here is the jk2.properties - ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess request.tomcatAuthentication=false - Thanks Tony -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:35 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it is obviously unusable now. Regards, pascal chong Tony F. White wrote: >Hello, > > > >I am hoping someone might be able to help me work out what on earth is going on here, we have just updated tomcat to 4.1.29 and we are having problems getting the connectors from apache to tomcat to work. I am using the connectors from 4.1.29 to compile the mod_jk2.so but every time I try to start apache with it I get the following (child numbers change each time): > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28446 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28449 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28452 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28455 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28458 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28461 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28463 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28464 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28467 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28470 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28473 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28476 in none of the 1024 scoreboard slots > > > >The connection to tomcat fails, I get a 404 whenever it tries to access the servlets, there are no other errors logged. On the tomcat side every time I restart it I get "CoyoteConnector Coyote can't register jmx for protocol" not sure what that means. but if I use the mod_jk2 from our old install it can connect to tomcat no problems. > > > >Thanks in advance! > > > >Cheers > >Tony > > > > > > - To uns
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote: I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it is obviously unusable now. Regards, pascal chong Tony F. White wrote: >Hello, > > > >I am hoping someone might be able to help me work out what on earth is going on here, we have just updated tomcat to 4.1.29 and we are having problems getting the connectors from apache to tomcat to work. I am using the connectors from 4.1.29 to compile the mod_jk2.so but every time I try to start apache with it I get the following (child numbers change each time): > > > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28446 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28449 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28452 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28455 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28458 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28461 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28463 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28464 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28467 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28470 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28473 in none of the 1024 scoreboard slots > >[Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28476 in none of the 1024 scoreboard slots > > > >The connection to tomcat fails, I get a 404 whenever it tries to access the servlets, there are no other errors logged. On the tomcat side every time I restart it I get “CoyoteConnector Coyote can't register jmx for protocol” not sure what that means… but if I use the mod_jk2 from our old install it can connect to tomcat no problems. > > > >Thanks in advance! > > > >Cheers > >Tony > > > > > > - 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]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it is obviously unusable now. Regards, pascal chong Tony F. White wrote: Hello, I am hoping someone might be able to help me work out what on earth is going on here, we have just updated tomcat to 4.1.29 and we are having problems getting the connectors from apache to tomcat to work. I am using the connectors from 4.1.29 to compile the mod_jk2.so but every time I try to start apache with it I get the following (child numbers change each time): [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28446 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28449 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28452 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28455 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28458 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28461 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28463 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28464 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28467 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28470 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28473 in none of the 1024 scoreboard slots [Wed Nov 05 11:54:07 2003] [error] jk2_init() Can't find child 28476 in none of the 1024 scoreboard slots The connection to tomcat fails, I get a 404 whenever it tries to access the servlets, there are no other errors logged. On the tomcat side every time I restart it I get âCoyoteConnector Coyote can't register jmx for protocolâ not sure what that meansâ but if I use the mod_jk2 from our old install it can connect to tomcat no problems. Thanks in advance! Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]