I'm not familiar with how this is done in Linux, but in Windows its important to make sure that the environment variables are set correctly, so that path to ANT, JAVA_HOME and Glassfish\bin are clearly defined.
HTH
Derek
[Message sent by forum member 'djsceats' (djsceats)]
http://forums.java.net/jive/thread.jspa?messageID=352979