This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

Tomcat 4.1.12 - Apache 2.0.43 connectivity

Madmax
Greenhorn

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.
Madmax.
[ 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
mod_jk-2.0.42.dll
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/workers.properties"
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
workers.java_home=E:/Java/Instances/j2sdk1.4.1
ps=\\
worker.list=ajp12, ajp13
# Definition for Ajp13 worker
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
in your workers.properties 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 - eudoxus@freeuk.com<br /><a href="http://www.matthewwebster.homeunix.net/" target="_blank" rel="nofollow">http://www.matthewwebster.homeunix.net/</a>
Madmax
Greenhorn

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.
Madmax.
shisheng tien
Greenhorn

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 ...help me *_*!
 
 
subject: Tomcat 4.1.12 - Apache 2.0.43 connectivity
 
Similar Threads
where is httpd.conf under SunOS ?
JSP with PHP
Apache Tomcat connectivity
Configuring Apache with Jboss-Tomcat bundle
Welcome Budi Kurniawan and Paul Deck!