Resolve dependencies to work with Glassfish 4.0