Hi friends, First, thanks to warren. In my case workers.properties file is on
Tomcat side, not on apache side. Its in /usr/local/tomcat-5/conf/jk. And I've
followed the instructions. I am giving my entire configuration /usr/local/tomcat-5/conf/jk/workers.properties # Setting Tomcat & Java Home workers.tomcat_home=/usr/local/tomcat-5 workers.java_home=/usr/local/jdk1.5.0_02 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 /usr/local/tomcat-5/conf/server.xml # #I have added following statements
to server.xml at different places # <Listener
className="org.apache.jk.config.ApacheConfig"
modJk="/usr/local/apache/modules/mod_jk.so"
workersConfig="/usr/local/apache-tomcat-5.5.12/conf/jk/workers.properties"/> #above line is under <Server
port="8005" shutdown="SHUTDOWN"> <Listener
className="org.apache.jk.config.ApacheConfig"
modJk="/usr/local/apache/modules/mod_jk.so" /> #above line is under <Engine
name="Catalina" defaultHost="localhost"> <Listener
className="org.apache.jk.config.ApacheConfig" append="true"
forwardAll="false" modJk="/usr/local/apache/modules/mod_jk.so"
/> # #above line is under <Host
name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false"> # /usr/local/apache/conf/httpd.conf #added following line at
end of this file Include /usr/local/tomcat-5/conf/jk/mod_jk.conf-auto Path of mod_jk.so file APACHE_HOME/modules/mod_jk.so Please not here, when I generated mod_jk.so by executing following commands cd
CONNECTOR_HOME/jk/native then mod_jk.so was not present in CONNECTOR_HOME/jk/native/apache-2.0/
although I copied it from CONNECTOR_HOME/jk/native/apache-1.3/ and put it in APACHE_HOME/modules/ I
am attaching the mod_jk.conf file contents which is being generated by tomcat
web server on /usr/local/tomcat-5/conf/auto
path. Again, I am running Tomcat version 5.5.12, Apache 2, Redhat Linux 7.0
and mod_jk 1.2.15 Please correct me where I am going wrong. Regards Mukesh -----Original Message----- 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 > > From: "mukesh" <[EMAIL PROTECTED]> > Date: 2005/12/06 Tue PM 05:23:34 EST > To: "' > 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: > 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/tomcat-5 > > 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: > > 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] > > |
########## Auto generated on Wed Dec 07 15:27:31 IST 2005########## <IfModule !mod_jk.c> LoadModule jk_module "/usr/local/apache/modules/mod_jk.so" </IfModule>
JkWorkersFile "/usr/local/tomcat-5/conf/jk/workers.properties" JkLogFile "/usr/local/tomcat-5/logs/mod_jk.log" JkLogLevel emerg <VirtualHost localhost> ServerName localhost JkMount /admin ajp13 JkMount /admin/* ajp13 JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /servlets-examples ajp13 JkMount /servlets-examples/* ajp13 JkMount /jsp-examples ajp13 JkMount /jsp-examples/* ajp13 JkMount /balancer ajp13 JkMount /balancer/* ajp13 JkMount /host-manager ajp13 JkMount /host-manager/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /axis ajp13 JkMount /axis/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 </VirtualHost>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]