You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Ikonne, Ike" <Ik...@stercomm.com> on 2003/04/28 19:08:45 UTC

RE: [users@httpd] tomcat 4.1.24 to Apache 2.0.45 using coyote mo d_jk2

Hi John P. Dodge,

Thanks a lot, I added [shm] .... to the workers2.properties file and
everything is
okay now.  I am curious, isn't that suppose to be done on Unix Machines
only?  I am
on Windows XP.

Thanks,

Ike


-----Original Message-----
From: John P. Dodge [mailto:dodge@cruciate.ca.boeing.com]
Sent: Saturday, April 26, 2003 10:10 AM
To: 'users@httpd.apache.org'
Subject: Re: [users@httpd] tomcat 4.1.24 to Apache 2.0.45 using coyote
mod_jk2


On Thu, 24 Apr 2003, Ikonne, Ike wrote:

>
> Hi all,
>
> I am having problem getting Apache 2.0.45 to talk to tomcat 4.1.24
> using the coyote mod_jk2 connector.  I have provided the config
> files and error message in Apache's error log file.  I would
> appreciate it if someone could tell me what I am doing wrong.
>
> Thanks,
>
> Ike
>
>
> ****** Here is the content of jk2.properties on tomcat 4.1 conf dir:
>
> # Set the desired handler list
> #handler.list=request,channelSocket
> #
> # Override the default port for the socketChannel
> channelSocket.port=8019
>
> ******* Here is the content of workers2.properties on Apache conf dir:
>
> # Define the communication channel
> [channel.socket:localhost:8019]
> info=Ajp13 forwarding over socket
> tomcatId=localhost:8019
>
> # Map the Tomcat examples webapp to the Web server uri space
> [uri:/examples/*]
> info=Map the whole webapp
>
>
> ******* Here is config info in tomcat 4.1 server.xml
>
>     <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8019" minProcessors="5" maxProcessors="75"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="10" debug="0" connectionTimeout="20000"
>                useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
>
> When I try to connect to the example servlet that comes with
> tomcat through Apache http://localhost/examples/, I get the
> following information in Apache error log file:
>
> ********* Apache's log file
>
> [Wed Apr 23 23:22:13 2003] [error] shm.init(): No file
> [Wed Apr 23 23:22:13 2003] [notice] Parent: Created child process 2764
> [Wed Apr 23 23:22:13 2003] [error] shm.init(): No file
> [Wed Apr 23 23:22:13 2003] [notice] Child 2764: Child process is running
> [Wed Apr 23 23:22:13 2003] [error] shm.init(): No file
> [Wed Apr 23 23:22:13 2003] [error] mod_jk child init 1 0
> [Wed Apr 23 23:22:13 2003] [notice] Child 2764: Acquired the start mutex.
> [Wed Apr 23 23:22:13 2003] [notice] Child 2764: Starting 250 worker
threads.
> [Wed Apr 23 23:23:22 2003] [error] workerEnv.init() create slot epStat.0
> failed
> [Wed Apr 23 23:23:22 2003] [error] lb.service() worker failed 120000 for
> ajp13:localhost:8019
> [Wed Apr 23 23:23:22 2003] [error] lb.service() unrecoverable error...

Do you have a shm:init section in workers2.properties?
# workers2.properties
    [shm]
    file=${serverRoot}/logs/shm.file
    size=1048576

Also the channel port is 8019 in the workers2.properties and 8009 in
tomcat server.sml?


----------------------------------------
"Mon aƩroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] tomcat 4.1.24 to Apache 2.0.45 using coyote mo d_jk2

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Mon, 28 Apr 2003, Ikonne, Ike wrote:

> Hi John P. Dodge,
>
> Thanks a lot, I added [shm] .... to the workers2.properties file and
> everything is
> okay now.  I am curious, isn't that suppose to be done on Unix Machines
> only?  I am
> on Windows XP.
>
> Thanks,
>
> Ike
>
> Do you have a shm:init section in workers2.properties?
> # workers2.properties
>     [shm]
>     file=${serverRoot}/logs/shm.file
>     size=1048576
>
> Also the channel port is 8019 in the workers2.properties and 8009 in
> tomcat server.sml?
>
>

This is the only required section for jk2, it won't work without it. Maybe
on Windows there is some different syntax for the [shm] but I don't know
about that.



----------------------------------------
"Mon aƩroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org