You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Quick, Edward T" <Ed...@BritishAirways.com> on 2001/10/17 16:23:21 UTC
mod_jk.so for TomCat 4.0
Hi Henri,
I have been trying to get Tomcat 4.0 to plug into Apache 1.3.20 and due to the problems I had with mod_webapp.so I thought I'd give mod_jk.so a go. I found your web page with the instructions on how to compile mod_webapp.so which I followed down to a tee, but unfortunately I'm still having problems. I wondered if you would be so kind as to answer a couple of questions for me just to check?
1) Do I need to make any edits to httpd.conf other than the line to LoadModule libexec/mod_jk.so?
2) In the following code you provide for server.xml, is the port number 8009, supposed to be the same as the port running Tomcat?
<!-- Define an AJP13 Connector on port 8009 -->
<!-- connectionTimeout should be set to ZERO -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" connectionTimeout="0" />
Regards,
Ed.
Re: mod_jk.so for TomCat 4.0
Posted by Chris Gokey <cg...@gcmd.gsfc.nasa.gov>.
Hi Edward...
Here is what should go inside your httpd.conf file. You can tailor it
much more by looking at the docs under Tomcat 3.2.3.
---
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile
/home/mddevel/MD8_Devel/MD8/packages/jakarta-tomcat-4.0/conf/workers.properties
JkLogFile /usr/local/apache-1.3.20/logs/mod_jk.log
JkLogLevel warn
JkMount /examples/* ajp13
JkMount /servlets/* ajp13
---
Notice you will need a workers.properties file. I attached mine as an
example. You can get this from the Tomcat 3.2.3 source distribution as
well.
Chris
Quick, Edward T wrote:> Hi Henri,
>
> I have been trying to get Tomcat 4.0 to plug into Apache 1.3.20 and due to the problems I had with mod_webapp.so I thought I'd give mod_jk.so a go. I found your web page with the instructions on how to compile mod_webapp.so which I followed down to a tee, but unfortunately I'm still having problems. I wondered if you would be so kind as to answer a couple of questions for me just to check?
>
> 1) Do I need to make any edits to httpd.conf other than the line to LoadModule libexec/mod_jk.so?
> 2) In the following code you provide for server.xml, is the port number 8009, supposed to be the same as the port running Tomcat?
>
> <!-- Define an AJP13 Connector on port 8009 -->
> <!-- connectionTimeout should be set to ZERO -->
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0" connectionTimeout="0" />
>
> Regards,
>
> Ed.
>
>
--
__________________________________________________
/\
\
\_| Christopher D. Gokey, SSAI, NASA/GCMD |
| 18 Martin Road, Shelburne Falls, MA 01370 |
| Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
| cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov |
| ICQ #52132386, AOL IM: chrisgokey |
| _____________________________________________|_
\_/______________________________________________/
Re: mod_jk.so for TomCat 4.0
Posted by Adam Fowler <af...@aber.ac.uk>.
Hullo,
mod_jk sometimes (for reasons I don't know) requires a bit of
jiggery-pokery in httpd.conf. This involves copying the first few lines
of mod_jk.conf-auto (a copy of mod_jk.conf with relevant modifications.
Can't include mod_jk.conf as it is overwritten each time Tomcat starts)
into the end of httpd.conf, as attached.
Basic instructions for things in httpd.conf can be found at
http://users.aber.ac.uk/aff9/mod_jk_install.html
Regards,
Adam.
Quick, Edward T wrote:
> Hi Henri,
>
> I have been trying to get Tomcat 4.0 to plug into Apache 1.3.20 and due to the problems I had with mod_webapp.so I thought I'd give mod_jk.so a go. I found your web page with the instructions on how to compile mod_webapp.so which I followed down to a tee, but unfortunately I'm still having problems. I wondered if you would be so kind as to answer a couple of questions for me just to check?
>
> 1) Do I need to make any edits to httpd.conf other than the line to LoadModule libexec/mod_jk.so?
> 2) In the following code you provide for server.xml, is the port number 8009, supposed to be the same as the port running Tomcat?
>
> <!-- Define an AJP13 Connector on port 8009 -->
> <!-- connectionTimeout should be set to ZERO -->
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0" connectionTimeout="0" />
>
> Regards,
>
> Ed.
>