Recently I installed apache and tomcat. Environment is depicted int subject
line. They both work nice and fine independently.

I am trying to integrate them with mod_jk.

I belive I followed all the steps suggested by document.

1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory
and added following in line httpd.conf

LoadModule jk_module modules/mod_jk.so

2. Went to tomcat Installation, changed server.xml. Added following lines.



 <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program
Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so"
workersConfig="C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties"
/>
Afte the line
 <Server port="8005" shutdown="SHUTDOWN">

Then Added

 <Listener className="org.apache.jk.config.ApacheConfig" append="true"
forwardAll="false" modJk="C:/Program Files/Apache Software
Foundation/Apache2.2/m
odules/mod_jk.so"  />
After the line

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

started the tomcat mod_jk.conf was created.

3. Went back to http.conf Added following line at the end

Include
C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto

Also added following lines after LoadModules

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     "%w %V %T"

Restarted whole thing. Still I can not go to follwoing web page.
http://localhost/examples/jsp/index.html

4. Created workers.properties file in ./con/jk ( in tomcat installation). It
looks like follwoing
# Define 1 real worker using ajp13
worker.list=ajp13
# Set properties for ajp13 (ajp13)
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009

After Reading couple of messages on newsgroup, I thought it will solve the
issue if I move the <VirtualHost ...> Section from mod_jk.conf to httpd.conf
but no avail.
my mod_jk.conf looks like somthing like this:
<IfModule !mod_jk.c>
  LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"
</IfModule>
JkWorkersFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties"
JkLogFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log"
JkLogLevel trace

am I missing something? Worst thing I can not see mod_jk log
Thank you.
rn

Reply via email to