This exception is thrown because both X and Hibernate JPA contain JAR of asm.
Go into the properties of your ejb project, there into Libraries there select restlib_gfv3ee6 click Edit button on the right select the asm.jar and click Remove.
Then click OK for both dialogs.
Redeploy you application and everything should work.
Ido.
[Message sent by forum member 'ido_ran' (ido.ran_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=391499