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 ]
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 - firstname.lastname@example.org<br /><a href="http://www.matthewwebster.homeunix.net/" target="_blank" rel="nofollow">http://www.matthewwebster.homeunix.net/</a>
Joined: Nov 13, 2002
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.