Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache and TomCat

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best and/or easiest way to set up Apache to receive requests for jsps? I already have Apache set up for cgi applications just need to enable it for accepting jsps. Any help very much appreciated. Thanks.

Rob
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.
 
Ray Stojonic
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to setup the jk2 connector.

There are many guides to doing this around the web, Start with the Tomcat / Apache docs.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ray. I thought there would be an entry in the conf doc for Apache to allow this. Anyways I'll do a search. Thanks.

Rob
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ray,
Tried searching but I thought there was a file called mod_jk or a folder called that I needed. I searched around and I couldn't find anything named that. I found a site where there is a binary download for a dll called something else underneath a directory called jk and not jk2. It said something about jk2 wasn't supported anymore and I noticed jk had a win64 and jk didn't so I assume thats the one to use if any. Any additional help would be appreciated. Thanks.

Rob
 
Ray Stojonic
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right, jk2 is no more it also used to be coyote...can't keep up with all the name changes , jk is what you're after.

Take your time on this, I found it to be pretty complicated (on Linux as a Linux noob)

The jk connector uses the AJPv13 protocol to pass information from Apache to Tomcat for processing and back again to the user.

The Tomcat 5.5 jk docs are here if you're on another Tomcat version, just look in the docs for the JK configuration
 
Ben Weng
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob, I fully understand the tiresome to search for something specific and have to go through a whole a lot docs. Here is what I did to make mine work.
1. put mod_jk.so in your Apache modules directory. (if you don't have it, I can mail a copy to you)
2. in your conf/httpd.conf file you have to add the following bits to it. As per Ray pointed out, the ajp13 protocal has to be mentioned here.

3.If you dont't have a proper workers.properties in tomcat, I can give you a copy of Windows.

I've done this long time ago and may have left something out but that's basically need to be done.

Good luck
[ January 27, 2006: Message edited by: Ben Weng ]
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for the helpful advice. I'll give it a try when I get home. I didnt notice these postings til recently cause I though everyone bailed. Thanks again.

Rob
 
Jack Coleman
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have mod_jk installed with Apache and everything works great. I could not find the .so file that I needed so I had to build it myself. Make sure that you have the apache-devel package installed before you build.

The only problem I have left now is to get mod_jk to handle a "PUT" request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic