Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How to integrate Tomcat 4 with Apache using mod_jk

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic