----- Original Message -----
From: "Thanuja Danda" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Saturday, June 07, 2008 4:27 PM
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
Guessing here
You server.xml ajp port is probably setup as follows
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>
You only running one TC so its probably OK
So change
worker.worker1.port=2004
To
worker.worker1.port=8009
Also
From you urls you seem to have TC on port 80
ie change it back to 8080
Apache must have port 80... actually I be surprized if TC even starts, or
apache etc
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Then just to this to Load module
<IfModule !mod_jk.c>
LoadModule jk_module "The path blah blah"
</IfModule>
Error message is complaining about a dup so maybe you loading module twice,
or the JK file or workers... just check that
Have fun
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]