Ok i figured out, the problem was a space in the glassfish directory. I reinstalled it to a different directory and it works like a charm. Though they fixed this issue, they didnt obviously. Sorry for the trouble.
[Message sent by forum member 'xzvim']
http://forums.java.net/jive/thread.jspa?messageID=485389