Now glassfish just stops when I run something like next:
./asadmin deploy /path.to/project
java.net.ConnectException: Connection refused
Unable to get remote commands.
Closest matching local command(s):
help
Command deploy failed.
[Message sent by forum member 'd_jm' (dens.business_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=382420