Glassfish4

I have just changed some Jersey parameters to run on jersey2 bundled with glassfish4.
Maybe you wish to add a new runtime to support glassfish3 and glassfish4. That is not considered in my pull request.

This patch should just a starting point for migrating to glassfish4.