Hi all,
If you get this exception in Intellij IDEA, then make sure there is no javaee.jar library on project class path. IDEA automatically adds this library to j2ee project/module and it's sure thing incompatible with jboss client libraries.
Just in hope you wouldn't spend whole weekend battling with classloading and jar versions ;-)