You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrey Grebnev <fo...@udm.ru> on 2005/04/15 08:23:18 UTC

mod_jk 1.2.10 can't find free endpoint

Hello All,

  I try to use:
    - Apache 1.3.33 under Windows XP SP2
    - mod_jk-1.2.10-apache-1.3.33.so
    - Tomcat 5.5.7
    - JDK 1.4.2_04

  I have following configuration in conf/httpd.conf

LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c
  
<IfModule mod_jk.c>
    JkWorkerProperty worker.list=ajp13w
    JkWorkerProperty worker.ajp13w.type=ajp13
    JkWorkerProperty worker.ajp13w.host=localhost
    JkWorkerProperty worker.ajp13w.port=8009

    JkLogFile     logs/mod_jk.log
    JkLogLevel    debug
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
</IfModule>
  
<VirtualHost *:80>
    ServerAdmin ag@blandware.com
    DocumentRoot E:/hosting/blandware.com/www/ROOT
    ServerName blandware.com

    <Directory />
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    DirectoryIndex index.jsp
    JkRequestLogFormat "%w %v \"%r\" %U %s %T"
    JkOptions +ForwardDirectories
    JkMount /*.jsp ajp13w
    JkMount /*.do ajp13w
    JkMount /rw/resource/* ajp13w
    JkMount /servlet/* ajp13w
    JkMount /manager/* ajp13w
    JkMount /j_security_check ajp13w

    ErrorLog E:/hosting/blandware.com/logs/error.log
    CustomLog E:/hosting/blandware.com/logs/access.log
combined
</VirtualHost>


I have requested the page http://blandware.com/login.do and
I have
good result:

[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (455): Attempting to
map UR
I '/login.do' from 6 maps
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/j_security_check'
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/rw/resource/*'
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/servlet/*'
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/manager/*'
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/*.jsp'
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/*.do'
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
map_uri_to_worker::jk_uri_worker_map.c (481): Found a
wildchar mat
ch ajp13w -> /*.do
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
wc_get_worker_for_name::jk_worker.c (94): found a worker
ajp13w
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_get_endpoint::jk_ajp_common.c (2132): acquired
connection cach
e slot=0
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (551): ajp
marshaling done
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_service::jk_ajp_common.c (1646): processing with 3
retries
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
jk_open_socket::jk_connect.c (317): socket TCP_NODELAY set
to On
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
jk_open_socket::jk_connect.c (415): trying to connect
socket 1676
to 127.0.0.1:8009
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
jk_open_socket::jk_connect.c (441): socket 1676 connected
to 127.0
.0.1:8009
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_connect_to_endpoint::jk_ajp_common.c (842): connected
sd = 167
6 to 127.0.0.1:8009
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (898):
sending to
 ajp13 pos=4 len=491 max=8192
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_send_request::jk_ajp_common.c (1240): request body to
send 0 -
 request body to resend 0
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1024):
received f
rom ajp13 pos=0 len=159 max=8192
[Fri Apr 15 09:27:25 2005] [2840:2508] [debug]
ajp_unmarshal_response::jk_ajp_common.c (606): status = 200

The result of login.do is HTML page, inside it I have
inclusion of
dynamically generated JavaScript

<script type="text/javascript"
src="/scripts/core/validator.jsp"></script>

In logs/mod_jk.log we have "can't find free endpoint"

[Fri Apr 15 09:27:25 2005] [2840:2560] [info]
 jk_handler::mod_jk.c (1805): Service error=0 for
worker=ajp13w
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (455): Attempting to
map UR
I '/scripts/core/validator.jsp' from 6 maps
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/j_security_check'
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/rw/resource/*'
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/servlet/*'
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/manager/*'
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to
map co
ntext URI '/*.jsp'
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (481): Found a
wildchar mat
ch ajp13w -> /*.jsp
[Fri Apr 15 09:27:25 2005] [2840:0904] [debug]
wc_get_worker_for_name::jk_worker.c (94): found a worker
ajp13w
[Fri Apr 15 09:27:25 2005] [2840:0904] [info]
 ajp_get_endpoint::jk_ajp_common.c (2148): can't find free
endpoint
[Fri Apr 15 09:27:25 2005] [2840:0904] [info]
 jk_handler::mod_jk.c (1805): Service error=0 for
worker=ajp13w

and in logs/access.log we have

127.0.0.1 - - [15/Apr/2005:09:27:25 +0500] "GET
/scripts/core/validator.jsp HTTP/1.1" 500 607
"http://atleap.com/
login.do" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.6) Gecko/20040113"

However if I request the same file
http://blandware.com/scripts/core/validator.jsp directly
from browser
I have good result.

I   suppose   that   problem  is  that  delay  between
 /login.do  and
/scripts/core/validator.jsp  are too small and the previous
connection
is not closed or something else.

Any ideas?


-- 
Best regards,
 Andrey Grebnev
----------------------------------------------------
Треть суток на треть дешевле!
МАРК-ИТТ ввёл льготные цены на ночной трафик в Народном Интернете
цены на трафик на 30% ниже дневных в период с 1:00 до 9:00.
600-й - 1.75р, Профессиональный - 1.89р, Деловой - 1.96р, 5-ка - 2,03р, Домашний - 2,10р

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk 1.2.10 can't find free endpoint

Posted by Mladen Turk <ml...@jboss.com>.
Andrey Grebnev wrote:
> Hello All,
> 
>   I try to use:
>     - Apache 1.3.33 under Windows XP SP2
>     - mod_jk-1.2.10-apache-1.3.33.so
>   
> <IfModule mod_jk.c>
>     JkWorkerProperty worker.list=ajp13w
>     JkWorkerProperty worker.ajp13w.type=ajp13
>     JkWorkerProperty worker.ajp13w.host=localhost
>     JkWorkerProperty worker.ajp13w.port=8009

   # Add the cache. Tt should match the MaxClients in httpd.conf
   # and maxThreads in server.xml for AJP connector
   JkWorkerProperty worker.ajp13w.cachesize=150


Apache 1.3 on windows is not prefork so you actually have a
single connection to tomcat without setting the cache size.

Regards,
Mladen.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org