• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Configuring Apache with Jboss-Tomcat bundle

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've installed Apache (apache_1.3.26-win32-x86-no_src) and Jboss-tomcat bundle (jboss-3.2.1_tomcat-4.1.24) on Windows 2000. Please give me some references or clarify the following.
1. Do I need to specify CATALINA_HOME if I want to use Apache as Web server and connect it to Tomcat bundled with Jboss ?
2. Where do I keep workers.properties file ?
3. I've edited httpd.conf file to use JK2 connector. What configuration is required in Jboss directory structure to make Tomcat serve JSPs ?

For production quality with SSO/SSL, which combination of Apache and Jboss/tomcat versions is recommended ?
TIA
Chary Vangeepuram
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am in the same position, but I'm running Apache 2.0.47. Should you find the way, could you please tell me how to do that?
Thnks,
Marco
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was able to configure Apache and Tomcat together on Windows 2000 so that Apache would server static content and forward all other requests to Tomcat. I did not use Tomcat from JBoss, I used Tomcat standalone instead, but nevertheless, these instructions might help you...
One quick note, I dont think jk2 works with Apache 1.x versions. You can check the documentation at the Apache site to be 100%, but I'm almost positive I remember reading something to that effect.
Configuration on Apache 2.0.43
------------------------------
1)You need to place module "mod_jk-2.0.43.dll" in the Apache2043\modules directory.
2)Make sure you have the following line in Apache\conf\httpd.conf (this should be the last line in the Dynamic Shared Object (DSO) section of the file)
LoadModule jk_module modules/mod_jk-2.0.43.dll
3)Make sure you have the file "workers.properties" in Apache2043\conf, and also make sure you have the following lines specified in the file (these are the properties that Apache uses to forward requests to Tomcat. Use your own custom settings for the port and host)
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
Configuration on Tomcat 4.1.27
------------------------------
1)Make sure that you have the following Connector specified in Tomcat4.1.27\conf\server.xml
<Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009"
minProcessors="5"
maxProcessors="75"
enableLookups="true"
redirectPort="8443"
acceptCount="10"
debug="0"
connectionTimeout="20000"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
2) My version of Tomcat4.1.27\conf\jk2.properties is empty and contains nothing but comments, so I don't think any configuration is required.
That should be it. Make sure the value for "port" in the Connector from step 1) is equal to the "worker.ajp13.port" in step 3).
If you run into ClassNotFoundExceptions thrown by Tomcat complaining about "org.apache.jk.server.JkCoyoteHandler", then you will most likely need to get the latest JARs from the Tomcat site (the file is called tomcat-jk2.jar)
Hope that helps,
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic