You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "R. C. Hill" <sh...@hotmail.com> on 2002/12/10 09:28:29 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Apache can't find Tomcat examples
Posted by Kaustuv Sharma <sk...@neline.com>.
Hi,
I have just done configuring Apache and Tomcat with Virtual hosting.....I am not an expert but here it is....
u have to mount the examples.....
JkMount /examples ajp13
JkMount /examples/* ajp13
Also in the httpd.conf, try to Load the module, instead of Include....
put this at the start of the LoadModule section..
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.dll
</IfModule>
Then at the end of the file add....
JkWorkersFile "c:/tomcat/conf/jk/workers.properties"
JkLogFile "c:/tomcat/logs/mod_jk.log"
JkLogLevel debug
JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13
...Try this...should work....
Regards,
Kaustuv
----- Original Message -----
From: R. C. Hill
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, December 10, 2002 1:58 PM
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>