• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 4.1.12 - Apache 2.0.43 connectivity

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Madmax
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 *_*!
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic