Made api changes now it works with GlassFish b78