aspose file tools*
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
Author

Connecting Apache 2.2 and Tomcat 5.5

Bryan Douglas
Greenhorn

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 mod_jk.so from the tomcat homepage, and I copied it to the apache modules directory.

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




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

Bryan Douglas
Greenhorn

Joined: Oct 25, 2005
Posts: 10
bump?
Stu Thompson
Hooplehead
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...

Presto!

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

Let us know how you get on.

Stu
[ 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
 
wood burning stoves
 
subject: Connecting Apache 2.2 and Tomcat 5.5