Upgrading didn't help. But i did a whereis asadmin and noticed that it didn't use the correct version. Was using /usr/sbin/asadmin instead of /usr/local/glassfish... I changed the path and now it works.
/Laban
[Message sent by forum member 'laban' (laban)]
http://forums.java.net/jive/thread.jspa?messageID=252353