Mukesh,
      Did you also edit your httpd.conf file and workers.properties?  I've 
attached some snippets from mine as text files.  Once you've configured 
everything, restart the servers first tomcat and then apache.
Regards
Warren
> 
> From: "mukesh" <[EMAIL PROTECTED]>
> Date: 2005/12/06 Tue PM 05:23:34 EST
> To: "'Tomcat Users List'" <users@tomcat.apache.org>
> Subject: RE: JSP on apache
> 
> 
> Hi tim,
>       Thanks for your help so far.
> 
>       Finally I've downloaded jakarta-tomcat-connectors-1.2.15-src.tar.gz
> and configured installed it using instruction from
> http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html.
> 
> Now when I start the tomcat then mod_jk.conf is being generated in
> /usr/local/tomcat/conf/auto directory and I am able access all the deployed
> services including http://<tomcat ip addr>:8080/jsp-examples. Apache is
> running on port 80.
> 
> But I am not able to execute http://<apache ip addr>/jsp-examples. It gives
> me page notr found error. I have added "Include
> /usr/local/tomcat/conf/auto/mod_jk.conf" statement also though this
> statement is different in
> http://tomcat.apache.org/connectors-doc/howto/apache.html document. here it
> says "Include /var/tomcat3/conf/jk/mod_jk.conf-auto" where /var/tomcat3/ is
> TOMCAT installation directory.
> 
> Both apache and tomcat server are running on same machine.
> 
> 
> Please guide.
> 
> Regards,
> -Mukesh
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 06, 2005 5:37 PM
> To: Tomcat Users List
> Subject: Re: JSP on apache
> 
> If you are using tomcat 5.5 - do not refer to the tomcat 3 docs ;)
> 
> http://tomcat.apache.org/connectors-doc/
> http://tomcat.apache.org/faq/
> 
> -Tim
> 
> mukesh wrote:
> 
> > Hi,
> > I have tried all the option given in
> > http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I
> > could not build the 
> >      jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so
> > (renamed as mod_jk.so).
> > 
> > 
> > if I run "make" command then following message appears
> > make: Nothing to be done for `mod_jk.so'.
> > 
> > 
> > My installation paths are
> > 
> > Tomcat: /usr/local/apache-tomcat-5.5.12
> > Apache: /usr/local/apache    (version is 2.0)
> > JDK: /usr/local/jdk1.5.0_02
> > 
> > Everything is working fine but no success with mod_jk. I must tell that
> this
> > is my first experience with apache and tomcat ( mod_jk too).
> > 
> > Please guide me if someone has already done mod_jk installation on Linux.
> I
> > am running Redhat 7.0
> > 
> > Please advice.
> > 
> > Regards,
> > Mukesh Kumar
> > 
> > 
> > 
> > -----Original Message-----
> > From: Tim Funk [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, December 02, 2005 7:43 PM
> > To: Tomcat Users List
> > Subject: Re: JSP on apache
> > 
> > Both of those binaries look to be for apache2. My guess is to rename the 
> > version you are using (apache worker vs prefork) to mod_jk.so.
> > 
> > Place the mod_jk.so libexec directory then add the appropriate so load
> > module 
> > directives and othr jk config directives. The FAQ should have some links 
> > (some good, some possibly not so good now) to external how-tos.
> > 
> > -Tim
> > 
> > mukesh wrote:
> > 
> > 
> >>Tim,
> >>    I have downloaded two files
> >>    1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so
> >>    2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so
> >>
> >>    I have gone through documentation. It says that I need mod_jk.so to
> >>complete the task which I could not find anywhere. 
> >>
> >>    And second documentation say that Tomcat has
> >>TOMCAT_HOME/native/mod_jk  directory structure but its not true in case of
> >>Tomcat 5.5.  Do I need to create the directories manually ?
> >>    
> >>    Third, which file I should use and where ?
> >>
> >>    I have downloaded above file from
> >>
> > 
> >
> http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
# These lines need to be in your httpd.conf file
LoadModule jk_module /usr/lib/apache2/mod_jk.so
# workers.properties should be in the same directory as httpd.conf
# I'm running Open SuSE 10.  Config files are saved in /etc in folders 
# folders named to match the application.
# Example:  httpd.conf is saved in /etc/apache2/
# Not sure about RH.
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
# The easiest way to mount your webapps is to use the JkAutoAlias directive.
# Of course, this will need to point to your webapps folder.
JkAutoAlias /usr/share/tomcat5/webapps
# Or assign webapps to specific workers...
JkMount /jsp-examples/* worker1

# Taken directly from Apache-Tomcat workers how-to
# Define one real worker using ajp13
# I'm defining two instead - no need to use ajp12.
worker.list=worker1,worker2
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
# Set properties for worker2
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=8009
worker.worker2.lbfactor=50
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to