You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Alex K." <ko...@iit.edu> on 2002/12/08 07:47:45 UTC

URGENT HELP NEEDED!

Hello,
 
 How is everyone?
 
 I have a really really weird problem with mod_jk
 
 
 For some reason it forwards servlets file to tomcat, but jsp files it
does not forward to tomcat at all.
 
 Here is a line out of mod_jk.log 
 
 When a .jsp file is sent to it:
 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
*.jsp
 
And here is what happens when a servlet request is processed
 
[Sun Dec 08 01:56:54 2002]  [jk_uri_worker_map.c (464)]: Attempting to
map URI '/servlet/HelloWorldExample'
[Sun Dec 08 01:56:54 2002]  [jk_uri_worker_map.c (489)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->
/servlet/
[Sun Dec 08 01:56:54 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Sun Dec 08 01:56:54 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (1352)]: Into
jk_worker_t::get_endpoint
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (1075)]: Into
jk_endpoint_t::service
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (280)]: Into
ajp_marshal_into_msgb
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (413)]:
ajp_marshal_into_msgb - Done
[Sun Dec 08 01:56:54 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Sun Dec 08 01:56:54 2002]  [jk_connect.c (123)]: jk_open_socket, try to
connect socket = 6
[Sun Dec 08 01:56:54 2002]  [jk_connect.c (132)]: jk_open_socket, after
connect ret = 0
[Sun Dec 08 01:56:54 2002]  [jk_connect.c (140)]: jk_open_socket, set
TCP_NODELAY to on
[Sun Dec 08 01:56:54 2002]  [jk_connect.c (148)]: jk_open_socket,
return, sd = 6
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (588)]: In
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 6
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (612)]: sending to ajp13
#403
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (853)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (698)]: received from ajp13
#24
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (461)]:
ajp_unmarshal_response: status = 200
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (466)]:
ajp_unmarshal_response: Number of headers is = 1
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (506)]:
ajp_unmarshal_response: Header[0] [Content-Type] = [text/html]
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (698)]: received from ajp13
#397
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (698)]: received from ajp13
#2
[Sun Dec 08 01:56:54 2002]  [jk_ajp_common.c (1307)]: Into
jk_endpoint_t::done
[Sun Dec 08 01:56:54 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
 
 
my mod_jk.conf
<IfModule !mod_jk.c>
  LoadModule jk_module libexec/mod_jk.so
</IfModule>
 
JkWorkersFile
"/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/jk/workers.prope
rties"
JkLogFile
"/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/logs/mod_jk.log"
 
 
 
my workers.properties is
 
#workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0
workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build
workers.java_home=/usr/local/jre
ps=/
worker.list=ajp13
 
# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
 
 
 
my entry in httpd.conf file is
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
 
from tomcat's log
 
2002-12-08 02:45:14 Ajp13Processor[8009][0] Starting background thread
2002-12-08 02:45:14 Ajp13Processor[8009][1] Starting background thread
2002-12-08 02:45:14 Ajp13Processor[8009][2] Starting background thread
2002-12-08 02:45:14 Ajp13Processor[8009][3] Starting background thread
2002-12-08 02:45:14 Ajp13Processor[8009][4] Starting background thread
 
from tomcat's server.xml 
 
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>
 
Apache and Tomcat work fine standalone and tomcat is serving pages on
its own.
 
To see this behavior please go to:
 
http://www.xicom.biz:9084/test3.jsp
 
then to http://www.xicom.biz/test3.jsp
 
then to http://www.xicom.biz/servlet/HelloWorldExample 
 
what is going on??!?!?!?
 
Please help, our client are currently down because of this. 
 
Really interesting thing is that this setup has been up and running for
some months now.
 
Please let me know what is happening!
 
Best Regards,
 
Alex Korneyev