aspose file tools*
The moose likes JSP and the fly likes How to integrate Tomcat 4 with Apache using mod_jk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to integrate Tomcat 4 with Apache using mod_jk" Watch "How to integrate Tomcat 4 with Apache using mod_jk" New topic
Author

How to integrate Tomcat 4 with Apache using mod_jk

George Joseph
Greenhorn

Joined: Nov 05, 2001
Posts: 24
Hello,
I have recently installed Tomcat 4 in a Windows machine, and I want to integrate it with Apache. Previously when using Tomcat 3.0 it was creating the mod_jk.auto-conf automatically. Which could be then included in the Apaches httpd.conf. But in case of Tomcat 4 the mod_jk.auto-conf is not being created.
Has anyone used the mod_webapp for Apache / Tomcat 4 integration. What are its advantages / disadvantages w.r.t mod_jk.
regards
George
George Joseph
Greenhorn

Joined: Nov 05, 2001
Posts: 24
Hi all,
I urgently need reply to this problem.
I have found some details inGalatea Flash guides but still also I am not able to connect Apache 1.3 with Tomcat 4.0.
I created (Hard-coded) the mod_jk.conf entries and the workers.properties entry according to the details given in the site but still no result. Now when I access the JSP pages via apache port it is just displaying the whole jsp as it is.
Thanks in advance

George Joseph
Transversal E Networks.
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
Originally posted by George Joseph:
Hi all,
I urgently need reply to this problem.
I have found some details inGalatea Flash guides but still also I am not able to connect Apache 1.3 with Tomcat 4.0.
I created (Hard-coded) the mod_jk.conf entries and the workers.properties entry according to the details given in the site but still no result. Now when I access the JSP pages via apache port it is just displaying the whole jsp as it is.
Thanks in advance

George Joseph
Transversal E Networks.

The JSP files should not be in the web server's document root. Instead, you need to explicitly handle certain URL patterns with mod_jk, as in
JkMount /examples/*.jsp ajp12


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
Hi George,
I configured the apache 1.3 and tomcat 4.0 successfully. Pls read the tutorial from http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html#APACHETOMCAT and it does work very well.
Hope this help.
Andrew
George Joseph
Greenhorn

Joined: Nov 05, 2001
Posts: 24
Hi Andrew,
Thanks, the link you refered was very informative, And I was able to successfully integrate Tomcat and Apache in one of my Linux machine.

The problem was my mod_jk.so was older one and according to the directives given in the site, I downloaded "jakarta-tomcat-connectors-4.0.4-src" and used the make file to create new mod_jk.so specific to Tomcat4 - Apache 1.3.

But still I would require help regarding integration of Apache1.3 - Tomcat4 in Windows. Can you suggest some good sites for this. Will the old (Tomcat3.x ) mod_jk.dll still work for Tomcat4.x, or do I need to get / make new mod_jk.dll.

Thanks
George Joseph
Transversal E Networks.
George Joseph
Greenhorn

Joined: Nov 05, 2001
Posts: 24
Hello all,
Where can I find the ( Tomcat 4 - Apache 3.1) mod_jk.dll for Windows.
In the site http://atlassw1.phy.bnl.gov/jakarta-tomcat/mod_jk-howto.html
they are advising to build mod_jk.dll in Windows just like I did for Linux. But in Windows the prerequiste is I must have complete VC++ 6.0 Environment installed and setup in my machine.
In the apache site http://jakarta.apache.org/builds/jakarta-tomcat/ I could only find the binary mod_jk.dll for the Tomcat3.x.
If any body can give me details or links where I can find the binaries appropriate to tomcat 4.x / Apache 1.3 for windows will be a great help.

Thanks in advance

George Joseph
Transversal E Networks.
Dane Frazier
Greenhorn

Joined: Jul 15, 2002
Posts: 18
see the links:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/
and
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html
for more specific information. Supposedly the process is the same for TC4.x and mod_jk.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to integrate Tomcat 4 with Apache using mod_jk