The BlazeDS officially doesn’t support Glassfish container for JEE applications, and many people get troubles or problem to accomplish this challenge. That’s a tip to think about it, “The open-source java community knows that them can contribute to BlazeDS?”. Anyway isn’t easy to find a solution that work out. I did mine reading theses two blog post here and here.
It’s a good hack by the way, but make sure that this hack is only for development propose, if you’re trying to put in production, you better bet your Architect.