• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Connecting Apache 2.2 and Tomcat 5.5

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bump?
 
Hooplehead
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic