Kaustuv's right. You have to mount the examples. You have to tell Apache which URLs to send to Tomcat. You do this with a JkMount command, like this:
JkMount /*.jsp ajp13 JkMount /servelets/* ajp13 This goes in httpd.conf in the appropriate virtual host container. If you want to use the ApacheConfig class in your Tomcat server.xml, all of the necessary httpd.conf modifications needed to use a connector for all configured Hosts and Contexts in server.xml will be generated for you automatically when Tomcat starts. John > -----Original Message----- > From: R. C. Hill [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 10, 2002 3:28 AM > To: [EMAIL PROTECTED] > Subject: Apache can't find Tomcat examples > > > Hi, > I'm trying to integrate Tomcat with Apache. I believe that I > configured them > correctly, but when I try the Tomcat examples URL, > http://localhost/examples/jsp ,it doesn't work and I find the > following in > the Apache error.log: [error] [client 127.0.0.1] File does not exist: > C:/Apache_Group/Apache2/htdocs/examples > > It doesn't look like the examples url is being redirected to > Tomcat. I'm > hoping that someone can point out my problem...See Apache > Tomcat config info > below: > > 1.) I downloaded the mod_jk-2.0.43.dll and placed it in the > C:\Apache_Group\Apache2\modules directory > > 2.) Created workers.properties in the C:\tomcat\conf\jk directory. > > # (optional) make this equal to CATALINA_HOME > workers.CATALINA_HOME="C:\tomcat" > > # (optional) make this equal to JAVA_HOME > workers.java_home="C:\j2sdk1.4.0_01" > > # Windows uses back slashes > ps=\ > worker.list=ajp13 > > # Definition for Ajp13 worker > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > > 3.) I added the following to tomcat's server.xml: > > 3a.)After the <Server port="8005" ...> declaration: > > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > modJk="C:\Apache_Group\Apache2\modules\mod_jk-2.0.43.dll" > jkDebug="info" > workersConfig="C:\tomcat\conf\jk\workers.properties" > jkLog="C:\tomcat\logs\mod_jk.log"/> > > 3b.)Added the following lines after the > <Service name="Tomcat-Standalone"> declaration: > > <!-- 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"/> > > 3c.)Added a listener after any <Host name="localhost"> > declarations: > > <!-- Define the default virtual host --> > <Host name="localhost" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > > 4.) Added to the end of the apache httpd.conf file: > Include "C:/tomcat/conf/auto/mod_jk.conf" > > 5.) The contents of C:\tomcat\conf\auto\mod_jk.conf shows: > > <IfModule !mod_jk.c> > LoadModule jk_module > C:/Apache_Group/Apache2/modules/mod_jk-2.0.43.dll > </IfModule> > > JkWorkersFile "C:/tomcat/conf/jk/workers.properties" > JkLogFile "C:/tomcat/logs/mod_jk.log" > > JkLogLevel info > > > Any help would be much appreciated! > Thanks, > - R > > > > > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
