Apache Tomcat

Discussion in 'Mac Apps and Mac App Store' started by VanMac, Sep 8, 2005.

  1. VanMac macrumors 6502a


    May 26, 2005
    Rampaging Tokyo

    Post for a friend. He is trying to install Apache Tomcat on his mini to play around with some java programming.

    He cannot get past the setup stage successfully. Not sure of all the details or errors...but he says he followed the steps from the Apple site, but gets nothing when surfing to http://localhost:8080

    If anyone has done this, and can post whatever you used as a guideline, etc, it would be appreciated.

    Thanks in advance.
  2. plinden macrumors 68040


    Apr 8, 2004
    There's not a lot to go on here. I haven't done this on Macs, but I have on Windows, Solaris and Linux, and it's extremely straightforward to get Tomcat running. I can't imagine it would be difficult with Macs.

    For a start, what does "... gets nothing when surfing to http://localhost:8080" mean. Does he get any error message? If the server isn't running, he should get a connection refused message. If the server is running but no resources are accessible, he should get a 404 error.

    If there are errors on startup, they should be logged. Get him to take a look in the logs directory (it's at the top of the tomcat directory tree)

    To leave out any possible problems with a browser, what happens if he opens Terminal, types "telnet localhost 8080" followed by "GET /"?

    Actually, he should try that before starting Tomcat, to make sure there is no process already running on port 8080. If the telnet to port 8080 is accepted then he has to find out what process is listening on port 8080 and kill it, or configure tomcat to use a different port.

Share This Page