aspose file tools
The moose likes Tomcat and the fly likes Tomcat 4.1.12 - Apache 2.0.43 connectivity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 4.1.12 - Apache 2.0.43 connectivity" Watch "Tomcat 4.1.12 - Apache 2.0.43 connectivity" New topic

Tomcat 4.1.12 - Apache 2.0.43 connectivity


Joined: Nov 13, 2002
Posts: 6
Hi, I am trying to establish connection between Apache 2.0.43 to Tomcat 4.1.12, I have tried all methods putting mod_jk.dll in the modules directory in Apache and bin directory in Tomcat. We have Apache as webserver and Tomcat as appserver setup. I need to establish the connectivity between these, can anyone help with the steps please? Any instructions location would also be appreciated.
The setup is in Windows 2000 Server.
[ November 13, 2002: Message edited by: Madmax ]
Matthew Webster
Ranch Hand

Joined: May 10, 2001
Posts: 51
Hi, I had a good few problems with this myself, but sorted it
What you want to do is get
from the Jakarta site. I had enourmous problems trying to use Coyote, but the docs do say that should be considered beta.
Place the .dll in Apache2/modules. Then place something like:
LoadModule jk_module E:/Java/Instances/Apache/Apache2/modules/mod_jk-2.0.42.dll
JkWorkersFile "E:/Java/Instances/Apache/Tomcat 4.1/conf/"
JkLogFile "E:/Java/Instances/Apache/Tomcat 4.1/conf/jk/modjk.log"
JkLogLevel info
into your Apache2/conf/httpd.conf file. Something like this which will give you a good start can be generated by the auto-config generator in Tomcat (won't list directions for that here, but just ask - there's lots of sites with the description anyway).
Then have:
workers.tomcat_home=E:/Java/Instances/Apache/Tomcat 4.1
worker.list=ajp12, ajp13
# Definition for Ajp13 worker
in your file and:
<Service name="Tomcat-Apache">
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009" minProcessors="5"
maxProcessors="75" acceptCount="10" debug="0"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" />

in your server.xml inside Tomcat/conf.
That should pretty much do it - just make the appropriate pathname alterations for your system.
I used the auto-gen just to get a good idea of what my mod_jk.conf would look like, but you don't need to- the websites with that info are all very accurate.
Hope this helps.

Matthew Webster -<br /><a href="" target="_blank" rel="nofollow"></a>

Joined: Nov 13, 2002
Posts: 6
Hi Mathew,
Thanks a lot for the information. I followed the instructions and it worked. There are a lot of undocumented information that we need to know for this combination to work.
However, it is good that people help out for such issues.
Thanks again.
shisheng tien

Joined: Nov 19, 2002
Posts: 1
hi,i deploy my web server on above rules. but, when i start Tomcat, it show me a message "jk.conf not found". Where the file me *_*!
I agree. Here's the link:
subject: Tomcat 4.1.12 - Apache 2.0.43 connectivity