First, I recommend to remove the env-entry element again. The proposal was an error, that's why I removed it from my post.
Second, Try to debug into the "getBeanFactory" invocation. That might provide further clues.
BTW: I recommend not to overload ejbCreate() and ejbRemove() in your class.