Tomcat server

Discussion in 'macOS' started by China Diapers, Feb 26, 2011.

  1. China Diapers macrumors newbie

    Joined:
    Feb 26, 2011
    #1
    Hi,

    Apologies in advance for the frivolous questions, and for being so thick, I have honestly spent all night trying to get this to work.

    I am trying to get Tomcat working on my Macbook with OS 10.6.4 using the instructions found at the below location without success:

    Java and Tomcat on Mac OS X, Part I

    I have got as far as creating the start_tomcat and stop_tomcat files and making these executable, but when I try point my browser to http://localhost:8080/ I get the below error:

    "Oops! Google Chrome could not connect to localhost:8080"

    I think maybe were I am going wrong is I used text edit to create the start and stop files, and instead of start_tomcat and stop_tomcat, I have start_tomcat.rtf and stop_tomcat.rtf, but I don't know how to create a file with no file extension. Anybody able to help, you'd really be making my week if I could get this work.

    Also...what are Unix line ending?
     
  2. j00d macrumors member

    Joined:
    Jul 27, 2007
    #2
    are you comfortable with terminal? you can rename the files with the mv command
     
  3. mshepherd macrumors regular

    Joined:
    Feb 29, 2004
    #3
    just use macports to install it.

    Then you can start in stop it in terminal with a simple command like

    /opt/local/share/java/tomcat6/bin startup.sh

    and...

    /opt/local/share/java/tomcat6/bin shutdown.sh


    macports will also take care of all the dependencies and updates.
     
  4. China Diapers thread starter macrumors newbie

    Joined:
    Feb 26, 2011
    #4
    I've taught myself everything I know about it today.

    I used pico text editor to recreate the files but still no joy.
     

    Attached Files:

  5. China Diapers thread starter macrumors newbie

    Joined:
    Feb 26, 2011
    #5
    Will give that a try, thanks
     

Share This Page