Hi everyone, I have studied this problem for a week now, and I can't seem to figure it out. All I want to do is connect Tomcat 5.5.4 Server to Apache 2.0.52. I've read the documents about the jk connector over and over, and tried doing the setup with many tiny variations, but whatever I do I always get either a 404 or a 200. If I hit tomcat directly through localhost:8080 I can run all my servlets and jsps, but not when I try and hit it through apache. Here are the appropriate snips from all my files. Can anyone offer advice - I'm guessing the problem is in my server.xml since everything else is either a log, an auto-generated, or a one liner in the httpd.conf. Thanks in advance to anyone who can help.
======================================================== ==== httpd.conf - I only have one Tomcat/Jk line in it right now - the include. ======================================================== Include "C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/auto/mod_jk.conf" ======================================================== ==== mod_jk.conf (obviously this is 100% auto-generated) ======================================================== ########## Auto generated on Thu May 05 21:33:00 CDT 2005########## <IfModule !mod_jk.c> LoadModule jk_module "C:/Program Files/Apache Group/Apache2/modules/mod_jk.so" </IfModule> JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/jk/workers.properties" JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5/logs/mod_jk.log" JkLogLevel emerg <VirtualHost localhost> ServerName localhost JkMount /roots ajp13 JkMount /roots/* ajp13 JkMount /wiki ajp13 JkMount /wiki/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 </VirtualHost> ======================================================== ==== server.xml ======================================================== <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program Files/Apache Group/Apache2/modules/mod_jk.so" /> <GlobalNamingResources> <!-- Used by Manager webapp --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8080" /> <!-- This is here for compatibility only, not required --> <Connector port="8009" protocol="AJP/1.3" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> <Host name="localhost" appBase="webapps"> <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program Files/Apache Group/Apache2/modules/mod_jk.so" append="true"/> </Host> </Engine> </Service> </Server> ======================================================== ==== mod_jk.log in the first line note that Apache seems to be asking jk about every request - that can't be right... in the last line this is what I usually get when I try and hit a jsp - I get different errors if I try tweaking my httpd.conf ======================================================== [Thu May 05 18:48:17 2005] [1924:2220] [debug] map_uri_to_worker::jk_uri_worker_map.c (455): Attempting to map URI '/index.php' from 1 maps ... snip [Thu May 05 21:23:18 2005] [error] ajp_service::jk_ajp_common.c (1733): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed --------------------------------- Yahoo! Mail Stay connected, organized, and protected. Take the tour