do you have the JKMount directive in your %APACHE_HOME%/conf/httpd.conf ?

# send all requests ending in .jsp to ajp13
JkMount /*.jsp ajp13

http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html

HTH
Martin-
----- Original Message ----- From: "Thanuja Danda" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Saturday, June 07, 2008 10:27 AM
Subject: Configuring Apache with Tomcat using mod_jk connector


Hi All,

I have an issue configuring Apache/2.2.8 (True 64 Unix) integration with
Tomcat 5.0.28 using mod_jk/1.2.26. Both Apache and Tomcat are running on the
same machine. While configuring, I followed the instructions from
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html. I
checked for both servers, they both are up and running. Apache is listening on port 80 and Tomcat is running on 2004. But when I used the URL to access
the "testapp" context on Tomcat using the URL (of Apache):
http://mtte0303/testapp/test.jsp, the Apache is not sending the request to
Tomcat. But when I access the tomcat URL: http://mtte0303/testapp/test.jsp,
it's working.

Please help me solving this issue.

Below is the Configuration I have made:

httpd.conf is configured as below:
------------------------------------------------
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/apache/tomcat/conf/jk/workers.properties
JkShmFile /usr/apache/logs/mod_jk.shm
JkLogFile /usr/apache/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /testapp/servlet/ worker1
JkMount /testapp/*.jsp worker1

workers.properties is configured as below:
-----------------------------------------------------------
# Define some properties
workers.tomcat_home=/usr/apache/tomcat
workers.java_home=/usr/opt/java141
ps=/
worker.list=worker1
# Set properties for worker1(ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=2004
worker.worker1.connection_pool_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=60

I am getting the following error messages in mod_jk.log when I access the
above URL.

[Sat Jun 07 08:14:19 2008] [628367:3223019520] [debug] jk_shm.c (457):
Attached shared memory [7] size=28672 free=28672 addr=0x18000
[Sat Jun 07 08:14:19 2008] [628367:3223019520] [debug] jk_shm.c (471):
Reseting the shared memory for child 7
[Sat Jun 07 08:14:19 2008] [628367:3223019520] [debug] jk_shm.c (262):
Duplicated shared memory lock /usr/apache/logs/mod_jk.shm.629169.lock
[Sat Jun 07 08:14:19 2008] [628367:3223019520] [debug] mod_jk.c (2730):
Attached shm:/usr/apache/logs/mod_jk.shm.629169 (28672 bytes)
[Sat Jun 07 08:14:19 2008] [628367:3223019520] [debug] mod_jk.c (2740):
Initialized mod_jk/1.2.26
[Sat Jun 07 08:14:49 2008] [629470:3223019520] [debug] mod_jk.c (3033):
missing uri map for mtte0303:/testapp/index.jsp
[Sat Jun 07 08:14:49 2008] [629470:3223019520] [debug] mod_jk.c (3190):
missing uri map for mtte0303:/testapp/index.jsp

Please let me know where is the mistake ?

Thanks in advance.

Please note: Apache is also configure with  mod_ssl/2.2.8 OpenSSL/0.9.8g

Regards
Thanuja



---------------------------------------------------------------------
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