Hi Enrico,

it looks like the config you sent doesn't fit to your problem. The only
configured forwarding rule with JkMount is a comment, so mod_jk should
never try to reach any tomcat. I assume, you added the comment sign when
trying to find the reason to your problem, but this makes me question
the rest of the config, e.g. the connection_pool_size comment.

Before we try to solve your problem: the following lines in your
workers.properties are obsolete, or not used in your situation. You
should remove them:

> workers.tomcat_home=/tomcat/dir
> workers.java_home=/opt/jdk
> ps=/

> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
> worker.ajp12.lbfactor=1

> #worker.ajp13.connection_pool_size
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=ajp12, ajp13

> worker.inprocess.type=jni

Now to your problem: Please add

worker.ajp13.socket_timeout=0

to your workers.properties and try again. If you can easily reproduce
the problem, it would be nice to increase JkLogLevel to trace (will
produce lots of logging) and attach the JkLogFile.

Regards,

Rainer

Enrico Donelli schrieb:
> Thanks Rainer for your reply!
> 
> Here's my mod_jk.conf
> 
> I solved my previous error adding the directive
> JkShmFile /var/log/apache2/mod_jk.shm
> (see later the copy of the file)
> 
> Now I have different errors:
> 
> [Sat Nov 18 09:27:57 2006] [16854:7072] [info]
> ajp_send_request::jk_ajp_common.c (1170): (ajp13) socket 33 is not
> connected any more (errno=11)
> [Sat Nov 18 09:27:57 2006] [16854:7072] [info]
> ajp_send_request::jk_ajp_common.c (1194): (ajp13) error sending
> request. Will try another pooled connection
> [Sat Nov 18 09:27:57 2006] [16854:7072] [info]
> ajp_send_request::jk_ajp_common.c (1218): (ajp13) all endpoints are
> disconnected or dead
> [Sat Nov 18 09:27:57 2006] [16854:7072] [info]
> ajp_service::jk_ajp_common.c (1867): (ajp13) sending request to tomcat
> failed,  recoverable operation attempt=1
> 
> What do they mean?
> 
> I'm using versions
> mod_jk/1.2.19
> Apache/2.0.54
> tomcat/5.5.20
> 
> 
> Thanks again!!
> 
> Enrico
> 
> 
> # ===============================================================
> # mod_jk.conf
> ####
> # Load mod_jk module
> LoadModule    jk_module  /usr/lib/apache2/modules/mod_jk.so
> # Declare the module for <IfModule directive> (remove this line on
> Apache 2.0.x)
> #AddModule     mod_jk.c
> # Where to find workers.properties
> JkWorkersFile /etc/apache2/workers.properties
> # Where to put jk logs
> JkLogFile     /var/log/apache2/mod_jk.log
> 
> JkShmFile /var/log/apache2/mod_jk.shm
> 
> 
> # Set the jk log level [debug/error/info]
> JkLogLevel    info
> # Select the log format
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> # JkOptions indicate to send SSL KEY SIZE,
> JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
> # JkRequestLogFormat set the request format
> JkRequestLogFormat     "%w %V %T"
> # Send servlet for context /examples to worker named worker1
> #JkMount  /examples/servlet/* worker1
> # Send JSPs  for context /examples to worker named worker1
> 
> 
> #============== workers.properties =============================
> workers.tomcat_home=/tomcat/dir
> workers.java_home=/opt/jdk
> ps=/
> worker.list=ajp13
> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
> worker.ajp12.lbfactor=1
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> #worker.ajp13.connection_pool_size
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=ajp12, ajp13
> 
> worker.inprocess.type=jni
> 
> 
> 
> 
> 
> 
> 
> 
> On 17/11/06, Rainer Jung <[EMAIL PROTECTED]> wrote:
>> Please give details on your mod_jk version and concerning your
>> configuration (mod_jk config inside httpd.conf and workers.properties).
>>
>> Errno 2 looks line not such file or directory. So does
>> /etc/apache2/logs/jk-runtime-status exist as a file and is the apache
>> user allowed to write into it. Does the directory /etc/apache2/logs
>> exist and again, does the apache user have write permissions there?
>>
>> Does the log message already show, when you are starting? If yes, could
>> you reproduce with JkLogLevel trace and provide the resulting file?
>>
>> Regards,
>>
>> Rainer
>>
>>
>> Enrico Donelli schrieb:
>> > Hi all,
>> > I'm having some problems with the mod_jk connector.
>> > In mod_jk logs file I have a lot of lines like
>> >
>> > [Fri Nov 17 23:07:18 2006] [12236:7072] [error]
>> > jk_child_init::mod_jk.c (2406): Attachning
>> > shm:/etc/apache2/logs/jk-runtime-status errno=2
>> >
>> > and from time to time the connector completely locks apache, forcing
>> > me to restart both apache and tomcat.
>> >
>> >
>> > Any idea? I could find no documentation about this error :((
>> >
>> > I'm using debian3.1, jdk1.5.0_05 and tomcat 5.20.
>> >
>> > Thanks in advance!!
>> > Enrico
>> >
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to