Hi Stefan,
Sorry for the late reply.
You need to look at your server log. There is probably an error message that explains why the server is not accepting your connections. I've seen this happen before with out of memory errors on the server side.
Stan
yahya,
I suggest getting a test working from the browser before you try it from Maven, Ant, or NetBeans. I know that others have gotten JSFUnit to work with Glassfish.
Please start a new thread when you have a new topic. I don't know a lot about Glassfish but I'll do my best to help.
Stan