• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

TOMCAT/APACHE integration

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd appreciate that any of you could help me on this.
I've just downloaded TOMCAT 4.1.12 and Apache HTTP server and they're running fine separately ( http://localhost and http://localhost:80 go to Apache and http://localhost:8080 goes to Tomcat)
My question is that how do I make them running together? For example, sending static request
to Apache and dynamic one to TOMCAT.
Do I need to do configure it manually (using mod_webapp connector???) or has it already been set up by TOMCAT?
Thanks again in advance!
joe
 
Saloon Keeper
Posts: 28328
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You set up a pipeline from Apache to Tomcat using a connector such as mod_jk, mod_webapp or the new coyote connector.
Most of the info goes in the apache config file so that Apache knows what URIs to decode into tomcat requests and how to transmit them to Tomcat. The Tomcat server may need some worker definitions and a server.xml entry.
Check out the version of the "Tomcat Apache HOWTO" in the documentation for the version of Tomcat you're using at jakarta.apache.org/tomcat.
 
tumbleweed and gunslinger
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been trying to get Apache to work with Tomcat for months, scoured the web, even won a book here, and can't get it work.
I've even rebuilt a brand new box, run a clean install of both Apache and Tomcat, copy-pasted from someone who swore their config worked, and it still didn't work.
Not even the basic "examples" came up.
TO make a liar out of me, someone is gonna have to physically show me a box where it's running.
I finally gave up and installed Resin.
Worked first time through, has an auto confi. app for apache, IIS, other.
Also, unless you are trying to run other things (CGI, PHP, etc.) or you need the speed for rendering static that apache provides, why not just run Tomcat standalone?
 
No, tomorrow we rule the world! With this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic