Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
mod_jk2 JNI question for the brave :)

mod_jk2 JNI question for the brave :)

2004-01-08       - By Yiannis Mavroukakis

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hi everyone,

Bringing the woes of jk2+JNI again here with the dreaded "Can't find child
xx in scoreboard", since I haven't found
a satisfactory answer by anyone.
Using TC5 with Apache 2.0.x under Linux, I can get jk2 to work using
sockets. However the fun begins when
I try to use JNI.
Looking at the source from mod_jk2, I have the following snippet:

 workerEnv->childId = find_child_by_pid(&proc);
if (workerEnv->childId == -1) {
       int max_daemons_limit;
       ap_mpm_query(AP_MPMQ_MAX_DAEMONS, &max_daemons_limit);

       if (max_daemons_limit == 0) {
           workerEnv->childId = 0;
           env->l->jkLog(env, env->l, JK_LOG_INFO,
               "jk2_init() Found child %d in scoreboard slot %d\n",
               proc.pid, workerEnv->childId);
       }
       else {
           env->l->jkLog(env, env->l, JK_LOG_ERROR,
               "jk2_init() Can't find child %d in scoreboard\n",
               proc.pid);
           workerEnv->childId = -2;
       }
   } else {
       env->l->jkLog(env, env->l, JK_LOG_INFO,
           "jk2_init() Found child %d in scoreboard slot %d\n",
           proc.pid, workerEnv->childId);

Now, the first line is the line that tries to locate the childId of the
worker in the running
server threads (if I am not mistaken). find_child_by_pid will loop through
all the active servers
trying to find the pid passed as an argument, if it fails to do so it
returns -1.

I am hazarding a guess, by saying that it must be something in my
configuration, within workers2.properties.
Is there anyone out there who can provide the definitive configuration file
and/or guidelines for workers2.properties?
The documentation on jk2 at the mo is a pile of poo (sorry guys).

Have a nice day,

Yiannis


Note:__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____

©2008 junlu.com - Jax Systems, LLC, U.S.A.