aspose file tools*
The moose likes Tomcat and the fly likes Apache and TomCat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache and TomCat" Watch "Apache and TomCat" New topic
Author

Apache and TomCat

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 823
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

Moved to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
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

Joined: Apr 09, 2002
Posts: 823
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

Joined: Apr 09, 2002
Posts: 823
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

Joined: Aug 08, 2003
Posts: 326
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

Joined: Feb 22, 2005
Posts: 19
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 ]

-Ben<br />SCJP/SCJD 1.4<br />Certified Sybase DBA
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 823
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

Joined: Apr 08, 2002
Posts: 32
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.


Tell me, Mr. Anderson, what good is a phone call when you are unable to speak?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache and TomCat