I found an issue with the proposed way to access the current classloader. The wiki and this forums always tell to use:
Found my own answer. I did use local ejb-refs, when I switched to remote it worked ok.
Man, somethimes the cause can be so far from the problem.