Results 1 to 3 of 3
  1. #1


    Member Since
    Jul 24, 2012
    Posts
    50
    Specs:
    iPhone 4s | iPad 2 | 21.5" iMac 2.7GHz 1TB
    Hostname and glassfish
    I posted a topic a while ago with the same problem but i managed to to get it working briefly. I need it reliably up and running now though.
    I am trying to use glassfish on my iMac. Whenever i try to start the server it tells me that
    "There is a process already using the admin port 4848 -- it probably is
    another instance of a GlassFish server"

    I know there isnt another glassfish server running. The problem seems to be quite common but there is no clear answer as to why. Most people say its to do with the /etc/hosts file and that the server cannot bind to the host, ipaddress.

    I was told to change the etc/hosts file so the first line now goes 127.0.0.1 localhost Tom's iMac
    The last name being the name on my computer (i think)
    I also send a command in terminal saying echo $HOSTNAME and it came back blank. Should this be blank?

    Also any advice on why i cant start the server.

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    No, you should have a HOSTNAME environment variable set. Do you have something set for the computer name in System Preferences > Sharing?

    As for the ports, execute the following and see if any PIDs are listening in on 4848:
    Code:
    lsof -i | grep LISTEN
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3


    Member Since
    Jul 24, 2012
    Posts
    50
    Specs:
    iPhone 4s | iPad 2 | 21.5" iMac 2.7GHz 1TB
    For the computer name i have Tom's-iMac set. I have had another fiddle in the hosts file and it worked when i restarted the machine. I will have to report back tomorrow if it is still working or if it was just a one off.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pinging an ip address and getting a hostname in return?
    By mnelson360 in forum Internet, Networking, and Wireless
    Replies: 1
    Last Post: 05-20-2014, 09:19 PM
  2. iTerm hostname change
    By Jason_M in forum OS X - Apps and Games
    Replies: 2
    Last Post: 03-28-2013, 07:26 AM
  3. Environment variable for local hostname?
    By gentinphilly in forum OS X - Operating System
    Replies: 1
    Last Post: 09-15-2011, 12:07 PM
  4. Airport: assigning ip of a hostname?
    By skilgannon in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 11-07-2010, 04:16 PM
  5. Hostname just changed itself!
    By n0r1 in forum OS X - Operating System
    Replies: 1
    Last Post: 05-09-2005, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •