Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 3rd, 2003, 10:03 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
Apache 1.3 + Tomcat 4.1 + connector?

I'm trying to build Apache with mod_jk built in to the httpd binary. I've downloaded and installed the binary version of Tomcat 4.1.x and have my Apache source tree waiting for the Tomcat connector to patch it.

I downloaded jakarta-tomcat-connectors-jk-1.2.3-src.tar.gz but I'm a little stuck on exactly what to do from here. Is this even the right component I need to hook Apache and Tomcat together? I tried building it with Ant and got some errors that Coyote files were missing:

Code:
[root@vanadium jk]# /usr/local/ant/bin/ant 
Buildfile: build.xml

detect:
     [echo] -------- jakarta-tomcat-connectors --------

prepare:
    [mkdir] Created dir: /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build
    [mkdir] Created dir: /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build/conf
    [mkdir] Created dir: /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build/classes
    [mkdir] Created dir: /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build/classes/META-INF
    [mkdir] Created dir: /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build/lib
     [copy] Copying 8 files to /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build/conf

BUILD FAILED
file:/usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/jk/build.xml:143: Warning: Could not find file /usr/local/src/java/jakarta-tomcat-connectors-jk-1.2.3-src/coyote/build/lib/tomcat-coyote.jar to copy.


Tomcat already has what I understand to be Coyote running at port 8009, but I'm not sure exactly what I should be using with Apache to get this working. Can anyone please help? Thanks!


-Cliff

Reply With Quote
  #2  
Old May 4th, 2003, 01:23 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
update

I was able to find documentation on how to link mod_jk (v1.2.3) into the Apache binary. I compiled a new stripped down apache with mod_jk alone and it runs.

However, there is reference to the worker.properties file, yet it only exists currently in the mod_jk source tree. Apparently this file needs to be configured properly for Tomcat to work. Anyone have the next step for me? Thank you!

Reply With Quote
  #3  
Old May 4th, 2003, 02:37 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
Got it!

I had to put a simple workers.properties file in my $CATALINA_HOME/conf directory:

Code:
workers.tomcat_home="/usr/local/tomcat"
workers.java_home="/usr/local/javasdk"
worker.list=test
worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13


Although this connector was already created in the $CATALINA_HOME/conf/server.xml file (you'll see a connector tag in there that hasn't been commented out), I believe this is crucial so that Apache knows how to refer to the connector.

Here's the code in the httpd.conf file:

Code:
JkWorkersFile "/usr/local/tomcat/conf/workers.properties"
JkMount /examples/* test
JkMount /tomcat-docs/* test
JkLogFile "/usr/local/apache-tomcat/logs/mod_jk.log"
JkLogLevel info



Hope this helps someone!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Apache 1.3 + Tomcat 4.1 + connector?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT