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:
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.
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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com