This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mac OS and the fly likes Tomcat and Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Tomcat and Apache" Watch "Tomcat and Apache" New topic
Author

Tomcat and Apache

Elton Hughes
Ranch Hand

Joined: Jun 19, 2003
Posts: 72
Hello All,

I have installed Tomcat on my Mac. When I go to http://localhost:8080 I get the default Tomcat screen. I have written a small web app that works fine on my machine. But when I go to any other machine in our network, the default page appears fine, but the webapp generates a "A connection failure has occurred." message. It works fine on my Mac, so I am guessing there is a configuration setting that needs changing.

So, my question is, is this something in the default Mac installation of Tomcat and Apache? Or is it more generic to the Tomcat? And if it is that, can someone (Bear?) move this topic to the best forum?

Thanks,

Elton
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
Probably the firewall. For security, OS X ships with a pretty conservative firewall. And if you do turn Personal Web Sharing on, I think that Apache by default serves from port 80.

Open the System Preferences application and click on "Sharing". Click on "Firewall | New" to create a new tunnel to allow port 8080.
Elton Hughes
Ranch Hand

Joined: Jun 19, 2003
Posts: 72
Hello Warren,

You are correct. It was the firewall. Once that port was opened up, it worked like a charm.

Thanks!



Elton
[ February 08, 2005: Message edited by: Elton Hughes ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and Apache
 
Similar Threads
Apache -> Tomcat servlet problem
Reg Apache2.0.48 ,Tomcat5.0.16
Apache Tomcat Integration
Help needed on SSL configuration for Apache HTTP server 2.2.10 and Tomcat 5.5.9
Tomcat not Responding!!