You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Albert Lunde <Al...@northwestern.edu> on 2003/03/10 03:45:20 UTC
"Error while opening the workers": apache 1.3.27 Tomcat 4.1.18
mod_jk
I am trying to use Apache 1.3.27, with Tomcat 4.1.18, and mod_jk on
Red Hat Linux 7.0
At the moment I'm getting what look like errors in the setup of
mod_jk: two messages in the error_log saying "Error while opening the
workers, jk will not work". (see below)
(We are using Apache 1.3.x rather than Apache 2.x, because we need to
use some locally written authentication modules without translating
them to the 2.x API.)
This is Apache from the Red Hat RPM version 'apache-1.3.27-1.7.1',
Tomcat from the binary distribution, and mod_jk built from
jakarta-tomcat-connectors-4.1.18-src.
The Apache error log messages when I restart the servers:
- - -
[Sun Mar 9 20:12:19 2003] [info] removed PID file /var/run/httpd.pid (pid=23516)
[Sun Mar 9 20:12:19 2003] [notice] caught SIGTERM, shutting down
[Sun Mar 9 20:12:31 2003] [info] mod_unique_id: using ip addr 129.105.188.79
[Sun Mar 9 20:12:32 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work
[Sun Mar 9 20:12:32 2003] [info] Created shared memory segment #123905
[Sun Mar 9 20:12:32 2003] [info] allocated semaphore #36864
[Sun Mar 9 20:12:34 2003] [info] mod_unique_id: using ip addr 129.105.188.79
[Sun Mar 9 20:12:35 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work
[Sun Mar 9 20:12:35 2003] [info] Created shared memory segment #124930
[Sun Mar 9 20:12:35 2003] [info] allocated semaphore #37376
[Sun Mar 9 20:12:35 2003] [info] created shared memory segment #124931
[Sun Mar 9 20:12:35 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6 mod_perl/1.24 mod_throttle/3.1.2 configured -- resuming normal operations
[Sun Mar 9 20:12:35 2003] [info] Server built: Oct 23 2002 14:51:49
[Sun Mar 9 20:12:35 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
- - -
I've posted a copy of my httpd.conf and files from the tomcat
configuration directory /var/tomcat41/conf under this directory on the web:
http://pubweb.northwestern.edu/~lunde/tomcat-3-9-03/
I've tried using both org.apache.coyote.tomcat4.CoyoteConnector and
org.apache.ajp.tomcat4.Ajp13Connector as the ajp13 connector with
seemingly similar results.
I have both these files:
conf/jk/workers.properties
conf/jk2.properties
but I'm not too sure if they are correct or necessary. Are they read
only by the connector class on the Tomcat side of the connection, or
are they read by mod_jk as well?
I was able to find the line issuing the error in the mod_jk
source code, but I don't understand enough to say what is really
going on underneath, to know where I should be looking for a cause
or more specific symptoms.
The message is at line 1787 in jk/native/apache-1.3/mod_jk.c:
- - -
/* we add the URI->WORKER MAP since workers using AJP14 will feed it */
worker_env.uri_to_worker = conf->uw_map;
worker_env.virtual = "*"; /* for now */
worker_env.server_name = (char *)ap_get_server_version();
if(wc_open(init_map, &worker_env, conf->log)) {
/* we don't need this any more so free it */
return;
}
}
ap_log_error(APLOG_MARK, APLOG_ERR, NULL,
"Error while opening the workers, jk will not work\n");
- - -
--
Albert Lunde Albert-Lunde@northwestern.edu (new address)
Albert-Lunde@nwu.edu (old address)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Apache 1.3.27 and mod_jk2
Posted by Selvaraj N <se...@india.hp.com>.
Hi,
Is it a right combination to integrate Tomcat 4.1.18 with Apache 1.3.27
using mod_jk2 connector? Do we get any advantage or disadvantage by
replacing mod_jk instead of mod_jk2?
Thanks,
Selva
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org