File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Connecting Apache 2.2 and Tomcat 5.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connecting Apache 2.2 and Tomcat 5.5" Watch "Connecting Apache 2.2 and Tomcat 5.5" New topic

Connecting Apache 2.2 and Tomcat 5.5

Bryan Douglas

Joined: Oct 25, 2005
Posts: 10
I successfully installed apache and tomcat, and the both work well alone. I want to connect apache and tomcat, however. I follow the directions at mod_jk connector docs, but neither the automatic config mode nor the manual settings mode worked. After making the changes, tomcat starts, but apache cannot. When I try to restart the apache service, it says "The requested operation has failed!" If I comment out the lines that I added to httpd.conf, the server starts perfectly.

Question: Is there a way I find out which line the error occured on while reading httpd.conf? There is no entry writtn to error.log in the logs directory. And that is the specified file in the httpd.conf file. Frown

Reference information:
Host System: Windows XP Pro
Apache: v2.2.3
Tomcat: v5.5.17

In order to try to get tomcat and apache to place nice together, first, I downloaded from the tomcat homepage, and I copied it to the apache modules directory.

In the apache conf folder, I created a file that contains:

At the bottom of the apache httpd.conf file, I appended:

Bryan Douglas

Joined: Oct 25, 2005
Posts: 10
Stu Thompson
Ranch Hand

Joined: Jun 14, 2006
Posts: 136
Hi Bryan,

I just got an identical setup working this evening...despite the absense of a single guide out on the net. You should not have to create or download and copy anything. TC5.5 and httpd 2.2 are supposed to play well together with AJP1.3. Maybe this will work for you as it did me:

Install httpd 2.2
Install tc 5.5
Uncomment (remove the # symbol) the following lines in httpd.conf

Add at the bottom of httpd.conf

(where the url is a deployed tc webapp that would respond if the protocol was http and the port 8080)

Restart both services...and...


I may have uncommented too many httpd.conf line but that can wait for later.

Let us know how you get on.

[ September 17, 2006: Message edited by: Stu Thompson ]

"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
I agree. Here's the link:
subject: Connecting Apache 2.2 and Tomcat 5.5
It's not a secret anymore!