File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Tomcat and Apache" Watch "Tomcat and Apache" New topic

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?


Warren Dew
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
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.


[ February 08, 2005: Message edited by: Elton Hughes ]
I agree. Here's the link:
subject: Tomcat and Apache
It's not a secret anymore!