tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerry Ford <jf...@katzenjammer.us>
Subject Re: MOD_JK (Apache+Tomcat)
Date Tue, 30 Dec 2003 01:10:47 GMT
Hari:

You're trying to do too much too soon. 

Get the Apache -> Tomcat connection through mod_jk to work before you 
try to get your own webapp to work.  Use the Tomcat example servlets to 
verify that mod_jk is correctly installed and functional.  If you can 
run the servlets through Apache (without :8080 in the URL) then you know 
mod_jk is okay, and you can focus exclusively on your webapp.

Webapp deployment and mod_jk are both complicated enough on their own 
without trying to mix the issues together.

Jerry

Hari Om wrote:

> Hello,
>
> I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1
>
> I am working on the Connector MOD_JK.SO which I build from the source 
> and put in /modules directory. When I run my Tomcat first and then 
> Apache and then acceess http://My.domian.name/kuki it does not work... 
> it says "Page cannot be found" wonder why? I also try to see 
> MOD_JK.LOG file but I cannot find this file anywhere.
>
> Can anyone help me out in connecting Apache and Tomncat. Here are my 
> Config Files:
>
> -----------
> SERVER.XML
> -----------
> # added following after <Server Port="8005"....>
>
> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>      modJk="/usr/local/apache2/modules/mod_jk.so" jkDebug="info"
>      workersConfig="/usr/local/tomcat4/conf/jk/workers.properties"
>      jkLog="/usr/local/tomcat4/logs/mod_jk.log"/>
>
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>               port="8009" minProcessors="5" maxProcessors="75"
>               acceptCount="10" debug="0"/>
>
>
> <Host name="my.domain.name" debug="0" appBase="webapps"
>       unpackWARs="true" autoDeploy="true">
>
>       <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>                        append="true"  />
>
>
> <Context path="/kuki" docBase="/home/kuki/kuki/webapps/kuki" 
> reloadable="true">
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>
>
> -------------------
> WORKERS.PROPERTIES
> -------------------
> workers.CATALINA_HOME=/usr/local/tomcat4
> workers.java_home=$(JAVA_HOME)
> ps=/
>
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=my.domain.name
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=5
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>
>
> -------------------------------------------
> MOD_JK.CONF <this file is AUTO GENERATED>
> -------------------------------------------
> ########## Auto generated on Mon Dec 29 14:10:45 MST 2003##########
>
> <IfModule !mod_jk.c>
>  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
> </IfModule>
>
> JkWorkersFile "/usr/local/tomcat4/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat4/logs/mod_jk.log"
>
> JkLogLevel info
>
>
>
> <VirtualHost my.domain.name>
>    ServerName my.domain.name
>
>    JkMount /kuki ajp13
>    JkMount /kuki/* ajp13
>
>    JkMount /examples ajp13
>    JkMount /examples/* ajp13
> </VirtualHost>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>
>
> ------------
> HTTPD.CONF
> ------------
> Listen My.IP.ADDR.ESS:80
>
> <IfModule !mod_jk.c>
>  LoadModule jk_module modules/mod_jk.so
> </IfModule>
>
> ServerName my.domain.name:80
>
> JkWorkersFile "/usr/local/tomcat4/conf/jk/workers.properties"
> JkLogFile "/usr/local/apache2/logs/mod_jk.log"
>
> JkLogLevel debug
>
> JkMount /examples ajp13
> JkMount /examples/* ajp13
>
> JkMount /kuki ajp13
> JkMount /kuki/* ajp13
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>
>
> Can anyone please GUIDE me on this Connection Process....?
>
> THANKS! and HAPPY NEW YEAR!
>
> HARI OM
>
> _________________________________________________________________
> Get reliable dial-up Internet access now with our limited-time 
> introductory offer.  http://join.msn.com/?page=dept/dialup
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message