New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

Hostname and glassfish


Post Reply New Thread Subscribe

 
Thread Tools
wales321

 
Member Since: Jul 24, 2012
Posts: 51
wales321 is on a distinguished road
Mac Specs: iPhone 4s | iPad 2 | 21.5" iMac 2.7GHz 1TB

wales321 is offline
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,665
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
Personal Twitter
QUOTE Thanks
wales321

 
Member Since: Jul 24, 2012
Posts: 51
wales321 is on a distinguished road
Mac Specs: iPhone 4s | iPad 2 | 21.5" iMac 2.7GHz 1TB

wales321 is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« How to Purchase a used Mac? | Resetting Mac Password »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 11:24 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?