Stick this into your workers2.properties
[shm]
file=/tmp/shm.file (or wherever else you'd like)
size=1000000

and try it again



-----Original Message-----
From: Matteo [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 15:29
To: Tomcat Users List
Subject: server error : tomcat 4.1.29 - mod_jk2 2.0.2 - apache 2.0.48


Hi all,

I'm develping a site using cocoon 2. It is deployed inside tomcat 4.1 and it
connected to apache 2 using mod_jk2.

This cocoon application works normally if accessed through Coyote HTTP1.1
Connnector, but if i try it using mod_jk2 i got sometime an error page:


-------------- error page starts -----------------------

Internal Server Error

The server encountered an internal error or
misconfiguration and was unable to complete
your request.

Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.

More information about this error may be available
in the server error log.

------------------------------------------------------------------------

Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.3 mod_jk2/2.0.2
Server at localhost Port 80

-------------- error page ends -----------------------


it is to be said that this applicarion works only some times,and i can't 
find out a logic in this.


this is the apache 2 error log at startup of the server :

----------------- log starts 
----------------------------------------------------
[Fri Jan 30 15:43:21 2004] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] mod_jk child init 1 0
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] jk2_init() Can't find child 7086 in 
scoreboard
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] mod_jk child init 1 -2
[Fri Jan 30 15:43:21 2004] [notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 
OpenSSL/0.9.7c PHP/4.3.3 mod_jk2/2.0.2 configured -- resuming normal 
operations
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
[Fri Jan 30 15:43:21 2004] [error] shm.init(): No file
----------------- log ends 
------------------------------------------------------

this is the apache 2 error log when the error page above show (i tried 
many time, is is always the same, only numbers and time changes):

----------------- log starts 
----------------------------------------------------
[Fri Jan 30 15:50:42 2004] [error] workerEnv.init() create slot epStat.4 
failed
[Fri Jan 30 15:50:42 2004] [error] lb.service() worker failed 120000 for 
ajp13:localhost:10249
[Fri Jan 30 15:50:42 2004] [error] lb.service() unrecoverable error...
[Fri Jan 30 15:50:42 2004] [error] mod_jk.handler() Error connecting to 
tomcat 120000
----------------- log ends 
------------------------------------------------------


more in depth informations about my configuration follows:

software used:
- sun sdk se 1.4.2_03
- cocoon 2.1.3
- tomcat 4.1.29
- mod_jk2 2.0.2
- apache 2.0.48
- kernel 2.4.22-10mdk (linux mandrake 9.2)
all are built from source (no distro default fo apache).

For apache i use the default name virtual server on my machine ad the 
host to connect to tomcat.


my jk2.properties file is very simple (i only changed the ajp port, ad i 
use no default 8009):
----------------- jk2.properites starts 
----------------------------------------------------
channelSocket.port=10249
----------------- jk2.properties ends 
----------------------------------------------------


while workers2.properties is also very simple:
----------------- workers2.properties starts 
----------------------------------------------------
[channel.socket:localhost:10249]
info=Ajp13 forwarding over socket
tomcatId=localhost:10249

[uri:/*]
info=Map the whole wepap
----------------- workers2.properties ends 
----------------------------------------------------

thanks in advance for the help!

    bye,

    Matteo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


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.

Reply via email to